Style-dictionary: Discussion: built-in templates

Created on 17 Apr 2021  路  2Comments  路  Source: amzn/style-dictionary

We have almost removed all of lodash (#302) with the remaining piece being their template function. We still heavily use templates internally for built-in formats because it is more user friendly than pure Javascript functions and string templates. This issue will serve as discussion for how to proceed moving forward:

  • Keep lodash templates
  • Move to a different templating engine (handlebars, nunjucks)
  • Create our own
  • Something else?
discuss format

Most helpful comment

I like the simplicity of Nunjucks, it would be my preferred templates engine.

All 2 comments

I like the simplicity of Nunjucks, it would be my preferred templates engine.

Nunjucks looks excellent to me for front end generation... I have no idea how it would do for code files instead of front end output, but I'm sure it could meet the needs of the task.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnny353535 picture johnny353535  路  3Comments

nhoizey picture nhoizey  路  4Comments

blackfalcon picture blackfalcon  路  4Comments

custa1200 picture custa1200  路  5Comments

clepore picture clepore  路  5Comments