I have a kotlin/js project that generates code bas...
# javascript
y
I have a kotlin/js project that generates code based on skeleton files by doing only simple replacements (replace "[-name-]" with name coming from user input for example). I end up processing .h, .cpp, readme, etc... (live here https://jamba.dev/quickstart/web/) Of course now I want to make it more sophisticated and have if/loop in my "replacement" so clearly a search/replace strategy won't work... any idea of a lightweight project that would work with kotlin js?
r
You can easily integrate JS templating engine like https://handlebarsjs.com/.
y
I will take a look at it. I am not sure how the integration with kotlin will look like, but I can give it a try.
r
I'm using it in KVision. It's very easy, because it can be used with webpack's handlebars loader and hbs templates are called as functions.