antonmedv / monkberry

Monkberry is a JavaScript library for building web user interfaces
https://monkberry.js.org
MIT License
1.49k stars 78 forks source link

Runtime compilation #28

Closed ngaer closed 7 years ago

ngaer commented 7 years ago

Is there any way to compile monkberry template from html string in application runtime? I was looking into Compiler.compile method, but it seems like it only can generate template file content.

godDLL commented 7 years ago

Have a look in monkberry/standalone

antonmedv commented 7 years ago

@godDLL is right. But it's always better to precompile your templates (performance, security, ...).