S
S
sakuradaj2015-02-10 15:54:58
backbone.js
sakuradaj, 2015-02-10 15:54:58

How to build JST with Gulp without precompilation?

I have underscore.js templates in item-view.jst view files.
How to simply assemble them into a js file without any precompilation?
What would the contents of jst files be stored in a JST object in the form JST['item-view'] = '<div class="item></div>'
I tried about 3-4 plugins and they all do only with precompilation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aen, 2015-02-10
@aen

You can try messing around with gulp-preprocess. It's not very convenient, but it might work for you.
For example:

JST['item-view'] = '/* @include path/to/item-view.jst */';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question