45 Commits

Author SHA1 Message Date
Patrick Steele-Idem
be56ba6e8d Fixes #139 - Allow dynamic custom tags to be used with <include> 2016-11-11 16:59:01 -07:00
Patrick Steele-Idem
36ef493526 Improved compiled output by setting module.exports at the top 2016-11-08 15:14:55 -07:00
Patrick Steele-Idem
9a86d848f2 Merge branch 'master' of github.com:marko-js/marko into marko-v4 2016-10-28 12:29:50 -06:00
Michael Rawlings
6b4ff673e3 fix conflicts and such 2016-10-26 23:22:53 -07:00
Michael Rawlings
796b60c3ed add support for dependency tracking through metadata 2016-10-26 23:13:16 -07:00
Patrick Steele-Idem
a05f15ce5d Cleaner split of the html and vdom runtimes 2016-10-24 12:36:09 -06:00
Patrick Steele-Idem
005b5a135e Additional fixes for #382 - Local variable for tag should have prefix or suffix to avoid conflict 2016-10-17 14:10:31 -07:00
Patrick Steele-Idem
ee815fc49b Runtime now supports both vdom and html output
All tests are passing
2016-10-11 17:28:09 -06:00
Patrick Steele-Idem
0d6efeaf6d require('marko/vdom') for vdom templates 2016-09-30 09:03:36 -06:00
Patrick Steele-Idem
02176baf0a vdom improvements 2016-09-20 09:00:53 -06:00
Patrick Steele-Idem
cbd0b37ef2 Introduced concept of an optimizer 2016-09-19 20:42:06 -06:00
Patrick Steele-Idem
e76c7fa6d6 vdom support 2016-09-19 16:50:44 -06:00
Patrick Steele-Idem
f309250843 generateHtmlCode --> generateHTMLCode 2016-08-19 15:27:05 -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
Patrick Steele-Idem
7ff286d5d5 Fixes #345 - Whitespace preservation should apply to all nested nodes 2016-08-03 12:13:55 -06:00
Patrick Steele-Idem
4f79a8042e Fixes #322 - Autoescaping doesen't work in <script> tag context 2016-07-01 10:54:11 -06:00
Patrick Steele-Idem
8d34d6b9b3 Avoid using a JavaScript reserved/special word as a tag name var 2016-06-24 09:32:40 -07:00
Patrick Steele-Idem
640a5a05ce Fixes #262 - node-require module removes .marko extension from filenames in compiled code 2016-04-18 11:32:33 -06: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
7c12f2b9b9 Fixes #237 - handling reserved javascript keywords 2016-02-29 10:44:49 -07:00
Patrick Steele-Idem
92dccd4978 Don't lookup tag def for dynamic tags 2016-02-16 20:48:21 -07:00
Patrick Steele-Idem
0c1babd588 Fixes #226 - Allow placeholders in tag name 2016-02-16 19:01:00 -07:00
Patrick Steele-Idem
80e963e1b8 Marko v3: Expose context.util object for providing helper functions 2016-02-11 14:59:28 -07:00
Patrick Steele-Idem
c78ca5f352 Marko v3: Improved handling of invalid attributes 2016-02-11 10:24:41 -07:00
Patrick Steele-Idem
87ed39139b Marko v3: Added methods for resolving templates and paths 2016-02-09 15:21:25 -07:00
Patrick Steele-Idem
3eb9084a2c Marko v3: Better handling of attribute placeholders 2016-02-09 11:41:05 -07:00
Patrick Steele-Idem
d60d82ddc5 Marko v3: Expose convenience method for getting a reference to the escapeXmlAttr helper 2016-02-06 18:17:27 -07:00
Patrick Steele-Idem
410bb80ede Marko v3: Reintroduced support for setting flags on elements from attr def 2016-02-05 16:44:48 -07:00
Patrick Steele-Idem
795a1d495f Marko v3: Added support for static vars and local variables 2016-02-04 17:09:11 -07:00
Patrick Steele-Idem
298cc2a336 Marko v3: Allow attributes passed to createNodeForEl to be an object 2016-02-03 14:39:11 -07:00
Patrick Steele-Idem
dfdbf8b377 Added helper method to import a module into the compiled template module 2016-02-03 11:18:50 -07:00
Patrick Steele-Idem
9dbb77870f Fixes #198 - Marko v3: Replace <div attrs(myAttrs)> with <div ${myAttrs}> 2016-02-01 16:31:12 -07:00
Patrick Steele-Idem
d1ca75a9c9 Marko v3: Wrap returned static variable name in an Identifier node 2016-01-19 10:47:26 -07:00
Patrick Steele-Idem
196a6b33b4 Marko v3: Support for nested tags and custom tag cleanup 2016-01-18 17:11:10 -07:00
Patrick Steele-Idem
020457aa88 Fixes #206 - Handle HTML comments correctly 2016-01-18 13:51:27 -07:00
Patrick Steele-Idem
7f6e9f65fa Fixes #205 - Marko v3: Provide full control over whitespace 2016-01-15 16:55:22 -07:00
Patrick Steele-Idem
15f2f18a28 Fixes #200 - Marko v3: Allow custom tag to be mapped to a template 2016-01-10 17:26:10 -07:00
Patrick Steele-Idem
c014b81259 Fixes #199 - Better handling of open-only and self-closed tags in Marko v3 2016-01-08 10:23:44 -07:00
Patrick Steele-Idem
c51362e793 Fixes #170 - macro support in Marko v3 2016-01-04 17:30:11 -07:00
Patrick Steele-Idem
1c37a6f56c Change how static code is wrapped in a Node 2015-12-31 15:08:37 -07:00
Patrick Steele-Idem
6153b13959 Fixes #195 <template-init> added 2015-12-30 19:59:10 -07:00
Patrick Steele-Idem
2a34d940e4 Expose method for creating an AST node from an HTML element 2015-12-29 11:01:48 -07:00
Patrick Steele-Idem
c78076f877 Restored most of the looping functionality 2015-12-03 16:07:11 -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