patternlab.io

Patternlab / Twig Variable Interpolation doesn't work with string from json

若如初见. 提交于 2019-12-17 21:30:42
问题 I'm working on a project that's based on the twig patternlab framework. I'm using JSON files for most of my content, especially for pages. I want to integrate a link (build by an atom) into a text I got from my JSON file that has a placeholder for the link. I'm working with texts from a multilingual cms so putting a placeholder into the text content is the easiest way to keep it flexible. This is an excerpt from my json file { "legal" : "Mit dem Absenden des Formulars akzeptieren Sie unsere #

Pattern Lab Templates

最后都变了- 提交于 2019-12-11 11:48:22
问题 I'm pretty new to Pattern Lab, but I feel like if this isn't a feature, it should be. Essentially, I want to model Pattern Labs after a real site. In most (or many) real sites it's common to use a templating engine. This is true of any mainstream technology I've used (rails, django, ASP.Net, or node with handlebars) to manage the view layer. I'll use handlebars in this example because it most closely mirrors the Pattern Lab mustache syntax. One of the big powers of templating engines is

Does Pattern Lab “not mix well” with Angular?

丶灬走出姿态 提交于 2019-12-10 04:32:59
问题 ​As an interaction designer looking for better ways to collaborate with developers, I have tried to introduce Pattern Lab to my current client. The lead developer for the front end framework pushes back, however. Main gist of his argument: Our toolkit has complex components that require JavaScript or a JS library in addition to HTML/CSS. This would not mix well with the Mustache or Handlebars templating in the Pattern Lab. Thus we use Angular JS, which is the framework that our components are

Patternlab / Twig Variable Interpolation doesn't work with string from json

*爱你&永不变心* 提交于 2019-11-28 13:11:55
I'm working on a project that's based on the twig patternlab framework. I'm using JSON files for most of my content, especially for pages. I want to integrate a link (build by an atom) into a text I got from my JSON file that has a placeholder for the link. I'm working with texts from a multilingual cms so putting a placeholder into the text content is the easiest way to keep it flexible. This is an excerpt from my json file { "legal" : "Mit dem Absenden des Formulars akzeptieren Sie unsere #{ legalLink }.", "deeplink" : { "label" : "Datenschutzbedingungen", "url" : "#AGB_link" } } and this is