53 Commits

Author SHA1 Message Date
Patrick Steele-Idem
176ee2bc9b Marko v3: Added support for node.onBeforeGenerateCode and node.onAfterGenerateCode 2016-02-02 16:01:00 -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
f47bfe9da3 Marko v3: Reintroduced support for nested variables 2016-02-01 16:29:23 -07:00
Patrick Steele-Idem
845ec98c98 Marko v3: Adjusted indentation for object literals 2016-01-19 15:35:36 -07:00
Patrick Steele-Idem
7ded254c8e Fixes #173 - Marko v3: Input data object for custom tags 2016-01-19 15:34:52 -07:00
Patrick Steele-Idem
42b2a349fd Marko v3: Don't put quotes around property name if not necessary 2016-01-19 11:04:52 -07:00
Patrick Steele-Idem
14a448ae03 Marko v3: Changes to avoid problems with cyclic module dependencies 2016-01-19 10:49:35 -07:00
Patrick Steele-Idem
9253534c46 Use builder.parseJavaScriptArgs() to parse argument 2016-01-19 10:48:19 -07:00
Patrick Steele-Idem
6b1a751739 Marko v3: Only preserve custom attribute name if explicitly preserved 2016-01-19 10:46:53 -07:00
Patrick Steele-Idem
0d6386198a Marko v3: Proper error message for unmatched nested tag 2016-01-18 20:13:56 -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
35e33aeb75 Fixes #208 - Marko v3: Re-introduce support for "import-var" in taglib 2016-01-18 14:38:30 -07:00
Patrick Steele-Idem
84de017839 Fixes #207 - Marko v3: Re-introduce support for "body-function" in taglib 2016-01-18 14:22:20 -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
e218cf876c Fixes #204 - preserve whitespace for script, textarea and pre 2016-01-14 10:13:47 -07:00
Patrick Steele-Idem
294c6335be Marko v3: Better handling of escaping for custom tags input 2016-01-11 13:15:26 -07:00
Patrick Steele-Idem
1ed8881b4d Marko v3: Don't render attribute value if it is an empty string 2016-01-11 09:59:49 -07:00
Patrick Steele-Idem
ab59abaee9 Fixes #201 - Marko v3: Don't allow "undefined" and "null" in output for placeholders 2016-01-11 09:43:46 -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
f45b1f364f Add assertion to require callee for FunctionCall node 2016-01-10 17:22:49 -07:00
Patrick Steele-Idem
94aaab2d6c Reintroduce renderBody for Marko v3 2016-01-08 14:13:36 -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
8c96302550 Fixes #197 - Better attribute code generation
Use attr helper and handle attribute escaping
Also improved AST and added walking capability
2016-01-07 16:05:26 -07:00
Patrick Steele-Idem
c51362e793 Fixes #170 - macro support in Marko v3 2016-01-04 17:30:11 -07:00
Patrick Steele-Idem
70d47e6d5b Fixes #177 - body-only-if support in Marko v3 2016-01-04 11:44:04 -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
4780d8182b Fixed formatting for an empty return 2015-12-31 13:32:46 -07:00
Patrick Steele-Idem
4e771acd00 Allow function declaration name to be an Identifier node 2015-12-31 13:32:32 -07:00
Patrick Steele-Idem
6153b13959 Fixes #195 <template-init> added 2015-12-30 19:59:10 -07:00
Patrick Steele-Idem
8263c6aad4 Don't escape for $!{} 2015-12-30 19:59:10 -07:00
Patrick Steele-Idem
fb6b436063 generator -> codegen 2015-12-28 21:55:29 -07:00
Patrick Steele-Idem
81ca6753d4 If/ElseIf/Else cleanup 2015-12-28 14:42:37 -07:00
Patrick Steele-Idem
705f22c29f Clone the array before searching for siblings 2015-12-28 14:41:36 -07:00
Patrick Steele-Idem
5fb7089624 marko v3: custom iterator support 2015-12-28 11:45:40 -07:00
Patrick Steele-Idem
d7800711b5 Fixes #184 - Looping over object properties 2015-12-28 10:17:22 -07:00
Patrick Steele-Idem
a366ef6b0a Fixed codegen for SelfInvokingFunction 2015-12-23 17:23:09 -07:00
Patrick Steele-Idem
1bf6838c2c Lot's of improvements
All string expressions are now parsed using esprima when using the builder API
2015-12-23 16:47:42 -07:00
Bryce Watson
9d5a7429c5 Updating Vars to allow scoped anonymous functions 2015-12-21 18:55:28 -08:00
Patrick Steele-Idem
90fb80b71f Fixes #185 - Allow the <var> tag to have body content 2015-12-20 16:02:59 -07:00
Patrick Steele-Idem
b0df950242 Make flushBufferedWrites() a private method 2015-12-16 21:36:58 -07:00
Patrick Steele-Idem
86f7f406e4 Allow an onDone listener to be associated with a slot 2015-12-16 21:35:52 -07:00
Patrick Steele-Idem
43211edb09 Allow var declaration element to be just a string or ID node 2015-12-15 14:56:29 -07:00
Patrick Steele-Idem
1533325034 More builder tests and improved compiler API docs 2015-12-15 11:19:01 -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
4b38989892 Restored range looping functionality 2015-12-07 13:21:02 -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