Open shapkarin opened 5 years ago
Maybe event some without html tags. And pass there any data to use loop or if statements next.
Can you give an example for a JS template engine?
It's just an idea. I'll try it.
@rajikaimal something like this https://codesandbox.io/s/rlo9vxqmn4 but with auto newlines
I think that this way you can easily create that kind of templates
function TestComponent ({ prop1, prop2, prop3 })
and so on
We just need to add indents and new lines somehow. Later I'll research that too.
It has new lines and indents. I just didn't saw that in html output. You can check by link
@rajikaimal I added prettier to the example. but still not so good because of how it works with empty lines Also I found project that uses that engine
I think about to use some JS template engine to generate files. To easily add some new templates for this project.