onionhammer / nim-templates

A simple string templating library for Nim
BSD 3-Clause "New" or "Revised" License
94 stars 9 forks source link

Support for JS target #7

Closed honewatson closed 6 years ago

honewatson commented 6 years ago

Hi there great work on this thanks,

Can you please provide support for the JS Target?

Compiler error is: OS module not ported to your operating system!

Then we have an isomorphic templating option. Karax does not support native compiler.

onionhammer commented 6 years ago

@honewatson in theory nim-templates shouldn't rely on the os module. It looks like it was added somewhat recently. You should experiment with simply removing it and trying to use tmplf, I will happily review any changes you'd like to submit a PR for

honewatson commented 6 years ago

Ok thanks I will take a look.