amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.91k stars 554 forks source link

Discussion: built-in templates #604

Open dbanksdesign opened 3 years ago

dbanksdesign commented 3 years ago

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:

nhoizey commented 3 years ago

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

chazzmoney commented 3 years ago

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.