25 Commits

Author SHA1 Message Date
Patrick Steele-Idem
340b28804f [AST] Added node.removeChildren() 2017-04-20 13:52:54 -06:00
Patrick Steele-Idem
2ae20ae431 Fixed node.previousSibling and node.nextSibling 2017-02-08 23:47:10 -08:00
Patrick Steele-Idem
f0f5616358 Fixes #531 - Whitespace normalization not handling WIndows EOL correctly 2017-01-13 19:29:49 -07:00
Patrick Steele-Idem
48def61b84 Added a helper firstChild to Node 2016-11-29 17:28:08 -07:00
Patrick Steele-Idem
82f30a2ec6 Added node.childCount and remove empty text nodes 2016-11-11 21:35:27 -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
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
19f4d41a31 Fixes #240 - Always trim start and end of template (even if preserveWhitespace is true) 2016-04-06 16:12:49 -06:00
Patrick Steele-Idem
263974361a Added nextSibling/getNextSibling() and previousSibling/getPreviousSibling() 2016-03-04 10:38:31 -07:00
Patrick Steele-Idem
3eb9084a2c Marko v3: Better handling of attribute placeholders 2016-02-09 11:41:05 -07:00
Patrick Steele-Idem
6d366ab1ee Marko v3: Node#wrap --> Node#wrapWith 2016-02-08 22:42:44 -07:00
Patrick Steele-Idem
e576718d11 Marko v3: Better handling of detaching and moving child nodes 2016-02-08 17:03:02 -07:00
Patrick Steele-Idem
d28ea9ba33 Additional Node helper methods for inserting siblings and children 2016-02-04 16:20:48 -07:00
Patrick Steele-Idem
2ce5493c9a Marko v3: Added Node.prototype.replaceWith(newNode) 2016-02-04 11:51:16 -07:00
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
7f6e9f65fa Fixes #205 - Marko v3: Provide full control over whitespace 2016-01-15 16:55:22 -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
6153b13959 Fixes #195 <template-init> added 2015-12-30 19:59:10 -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
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
069b3e5ba9 Initial commit for marko v3 with htmljs-parser
Work-in-progress. Lots of failing tests.
2015-11-24 14:30:32 -07:00