marko-js / marko

A declarative, HTML-based language that makes building web apps fun
https://markojs.com/
MIT License
13.36k stars 643 forks source link

handlebars to markojs conversion #1079

Closed sido420 closed 6 years ago

sido420 commented 6 years ago

Is there an easy way to compile/convert handlebar templates (.handlebars files) into markojs compatible files?

In my project, I have several handlebars files that I precompile into JS and include in my project to be used by calling JS Handlebars.* method. What would be the fastest way to switch to marko for my use case?

DylanPiercey commented 6 years ago

Unfortunately there isn't a tool like this that I am aware of. You'd likely run into some hurdles because of the way the handlebars runtime works however it would technically be possible for some limited functionality to be converted to Marko. This would definitely be out of scope for this project however.