65 Commits

Author SHA1 Message Date
Michael Rawlings
42ef3fcb45 add escaping for inline styles and more targeted escaping for inline scripts 2017-02-09 12:48:41 -08:00
Patrick Steele-Idem
3f2f198e7e Merge branch '487-template-compiler-version' of https://github.com/marko-js/marko 2017-02-08 20:03:26 -08:00
Patrick Steele-Idem
c43a998335 Fixes #560 - Error for unrecognized tags 2017-02-08 19:55:53 -08:00
austinkelleher
645d184da0 Fixes #487 - Add marko compiler type and version to compiled output. 2017-02-07 11:15:53 -05:00
Patrick Steele-Idem
28b6b44488 Reworked how widgets are created and initiatlized 2017-01-31 12:29:20 -07:00
Michael Rawlings
cd855f6edf work around issues with server bundling 2017-01-18 18:22:14 -08:00
Michael Rawlings
1564788f2e fix regression with pushMeta unique 2017-01-12 13:24:59 -08:00
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
20cf6d364e More code size reductions 2017-01-02 15:53:38 -07:00
Patrick Steele-Idem
99199e9f2d Fixes #474 - Assignment null tag 2016-12-28 19:39:53 -07:00
Patrick Steele-Idem
59559b211a Improved compilation for the browser and webpack compatibility 2016-12-28 17:02:24 -07: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
8ed3977a5a Improved deprecation messages 2016-12-14 13:54:07 -07:00
Michael Rawlings
feb053b979 add context.deprecate method 2016-12-13 20:46:03 -08:00
Michael Rawlings
dada89397a more concise template export 2016-12-13 11:57:50 -08:00
Michael Rawlings
5df429d160 add support for component level styles. fixes #456 2016-12-07 23:54:13 -08:00
Patrick Steele-Idem
f0abbbb614 Make sure container for nested tag is associated with the correct node 2016-12-06 18:11:11 -08:00
Patrick Steele-Idem
9c07e9bf61 FIxes #436 - Add support for shorthand nested tags (e.g., <@foo>) 2016-11-29 17:28:09 -07:00
Patrick Steele-Idem
d2b26002dd Implement range looping using helper function 2016-11-29 17:28:08 -07:00
Patrick Steele-Idem
9183c2792d Allow callee to provide variable name for imported template 2016-11-22 08:44:00 -07:00
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