BorisMoore / jsviews

Interactive data-driven views, MVVM and MVP, built on top of JsRender templates
http://www.jsviews.com/#jsviews
MIT License
855 stars 130 forks source link

Full Webpack support #341

Closed ViktorHofer closed 8 years ago

ViktorHofer commented 8 years ago

Hey Boris, thanks for your great work!

One question. Is the webpack support currently at the same level as the browserify support? For browserify there is a transform which can handle file templates and its sub-templates.

Thanks, Viktor

BorisMoore commented 8 years ago

Right now there is no webpack loader for JsRender templates. It should be possible to write one, probably based fairly closely on the existing Browserify Transform implementation. But right now I am unable to work on it - given other priorities for JsViews/JsRender work towards V1.0 release.

Of course if you are interested in contributing, that could be great. I started looking at relevant links, below:

https://webpack.github.io/docs/webpack-for-browserify-users.html https://github.com/webpack/transform-loader https://github.com/emaphp/handlebars-template-loader https://github.com/pcardune/handlebars-loader

Another option you could look at is to use the webpack transform loader (above) to load the Browserify JsRender transform...

BorisMoore commented 8 years ago

Adding an After V1 label, and closing for now.