20 Commits

Author SHA1 Message Date
Michael Rawlings
8a16714e1d use js object for meta and lazily build ast in template root node. removes need for eval in compiled template dependencies getter 2017-01-08 09:55:44 -08:00
Patrick Steele-Idem
4ee45259f4 Check for meta 2017-01-07 15:56:27 -07:00
Michael Rawlings
6531f7a5ea update compileForBrowser/compileFileForBrowser to return an object (the compiled template instance) instead of just the source code. Add a dependencies property to the object. 2017-01-07 09:45:01 -08:00
Michael Rawlings
ac47c069f9 remove need to pass node to and , get it automatically from the context 2016-12-14 18:07:47 -08:00
Patrick Steele-Idem
a35e6bdbc3 Fixes #408 - Allow transformer to be registered at the template level 2016-11-09 14:41:33 -07:00
Patrick Steele-Idem
e76c7fa6d6 vdom support 2016-09-19 16:50:44 -06:00
Patrick Steele-Idem
c386da875e Fixes #349 - Inline Marko template compilation support
Also changed how JavaScript code is generated
2016-08-19 10:50:28 -06:00
Michael Rawlings
902390a6e2 fix bug with transforms being called on detached nodes 2016-06-24 14:13:19 -07:00
Patrick Steele-Idem
05c6c8c066 Improved whitespace removal for text nodes directly below the root 2016-04-06 17:46:31 -06:00
Patrick Steele-Idem
bf471f39dd Fixes #254 - Allow preserve whitespace to be enabled at the global level 2016-04-06 16:11:42 -06:00
Patrick Steele-Idem
4339c8dfd1 Marko v3: Added "preserveWhitespace" as a load template/compiler option 2016-02-09 16:02:34 -07:00
Patrick Steele-Idem
b6d0dbcd7f Marko v3: Provide dummy getLastModified() method for compatibility 2016-02-09 15:22:25 -07:00
Patrick Steele-Idem
8b51e818a3 Marko v3: Improved assertions 2016-02-01 16:34:16 -07:00
Patrick Steele-Idem
149c64395e Minor updates 2015-12-11 15:54:03 -07:00
Patrick Steele-Idem
28a851723a More compiler tests, docs and improvements 2015-12-11 15:48:35 -07:00
Patrick Steele-Idem
d621ef13df Various cleanup 2015-12-11 09:08:27 -07:00
Patrick Steele-Idem
6ecb5b32dd Record error for invalid attributes 2015-12-02 23:01:23 -07:00
Patrick Steele-Idem
ef95ce6055 Introduced CompileContext and other refactoring 2015-12-02 19:35:19 -07:00
Patrick Steele-Idem
ad2f43c06e Reintroduced basic support for custom tags 2015-12-01 13:56:31 -07:00
Patrick Steele-Idem
069b3e5ba9 Initial commit for marko v3 with htmljs-parser
Work-in-progress. Lots of failing tests.
2015-11-24 14:30:32 -07:00