311 Commits

Author SHA1 Message Date
Patrick Steele-Idem
6153b13959 Fixes #195 <template-init> added 2015-12-30 19:59:10 -07:00
Patrick Steele-Idem
4557d307b0 Improvements to adjustIndent 2015-12-30 19:59:10 -07:00
Patrick Steele-Idem
73f383e96e Added compiler/util/adjustIndent.js 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
2a34d940e4 Expose method for creating an AST node from an HTML element 2015-12-29 11:01:48 -07:00
Patrick Steele-Idem
fb6b436063 generator -> codegen 2015-12-28 21:55:29 -07:00
Patrick Steele-Idem
21ff7769e5 handleText -> handleCharacters 2015-12-28 14:44:34 -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
9b602800a3 Handle statements better for returned nodes 2015-12-23 17:11:40 -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
2c8a24b50f Improve and simplify how slots are handled 2015-12-16 21:36:36 -07:00
Patrick Steele-Idem
841a21e4e6 Allow onDone for builder.slot() 2015-12-16 21:36:11 -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
a8f6737755 Allow generateCode function to be provided for a node 2015-12-15 14:56:40 -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
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
a55f3bb82b Cleanup support for scoped packages 2015-12-10 10:31:26 -07:00
Jonathan Tropper
b6ad06ad64 Adds support for scoped packages to the marko-taglib.json scanner 2015-12-09 15:57:37 -08:00
Patrick Steele-Idem
eb77d3265d Allow transformers to work on any node that extends HtmlElement or TextOutput 2015-12-08 16:31:51 -07:00
Patrick Steele-Idem
52f719323c Pass the element node to the factory, instead of the element factory 2015-12-08 16:25:10 -07:00
Patrick Steele-Idem
f68e7f245e jshint fixes 2015-12-07 14:05:31 -07:00
Patrick Steele-Idem
76f1a5998a Merge branch 'master' of github.com:marko-js/marko into htmljs-parser 2015-12-07 14:03:23 -07:00
Patrick Steele-Idem
4b38989892 Restored range looping functionality 2015-12-07 13:21:02 -07:00
Patrick Steele-Idem
f98a7dfef9 Fixes #167 - Nested tags only work one level deep 2015-12-07 11:44:08 -07:00
Patrick Steele-Idem
a9fd496589 More cleanup. Made all failing tests pending 2015-12-03 16:29:12 -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
Patrick Steele-Idem
ad2f43c06e Reintroduced basic support for custom tags 2015-12-01 13:56:31 -07:00
Patrick Steele-Idem
66f9be0d4e Reintroduced attrs support 2015-12-01 09:36:44 -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
Patrick Steele-Idem
8095f1e892 jshint fixes 2015-11-23 12:51:03 -07:00
Patrick Steele-Idem
1878dd0109 Fixes #140 - Also de-dupe cached taglibs in finder 2015-10-26 15:18:28 -06:00
Patrick Steele-Idem
722a6339d6 Use shorter relative paths in error messages 2015-10-02 12:23:05 -06:00
Patrick Steele-Idem
370ac4b3ab Fixes #150 - Provide option to prevent writing compiled templates to disk 2015-09-24 10:32:54 -06:00
Patrick Steele-Idem
91efc184d1 Fixes #140 - De-dupe taglibs by module name 2015-09-23 15:34:03 -06:00
Patrick Steele-Idem
fef06cab1f Fixes #137 - adds support for dynamic HTML tag names 2015-08-28 08:56:27 -06:00
Patrick Steele-Idem
9727fa2bd7 Fix to make compiler work in the browser 2015-08-27 17:24:21 -06:00
Patrick Steele-Idem
133d44152e Improved handling of imports 2015-08-25 11:23:01 -06:00
Patrick Steele-Idem
13ad6eb56a Better handling of loading taglibs with circular dependencies 2015-08-25 11:21:28 -06:00