David Greenspan
cf9bc604b8
Start of spacebars compiler reorg
...
In advance of changing how {{> }} and {{# }} are compiled.
Goals for this reorg:
- "stache tags" are instanceof Spacebars.TemplateTag
- Phase out the word "stache"
- Better separate parsing, template tag expansion, and overall codegen and optimization using multiple files, and additional methods and properties on TemplateTag as appropriate
In particular, the things that happen to a template tag are it is parsed; validated (i.e. errors are thrown); and expanded (into code). Validation and expansion can be methods on TemplateTag, as long as they also know the TEMPLATE_TAG_POSITION where the tag occurred. They can be done either while parsing or while walking the AST for code generation, but if validation is done during parsing then it's easy to throw good error messages. If expansion is done during code generation, then it's easier to inspect the parse tree for testing and debugging.
Also:
- Get rid of the word "Special" in html-tools (HTML.Special, getSpecialTag) in favor of TemplateTag.
2014-01-15 10:17:41 -08:00
..
2014-01-07 04:08:06 -08:00
2013-07-25 18:54:42 -07:00
2013-07-25 18:54:42 -07:00
2013-07-25 18:54:42 -07:00
2013-07-25 18:54:42 -07:00
2013-07-26 19:38:44 -07:00
2013-05-17 18:00:35 -07:00
2013-05-17 18:00:35 -07:00
2013-05-21 15:19:01 -07:00
2013-12-26 17:24:07 -06:00
2013-07-30 15:37:06 -07:00
2013-10-08 20:03:02 -07:00
2013-12-16 20:07:23 -08:00
2013-07-25 18:54:42 -07:00
2013-08-26 19:28:25 -07:00
2013-11-06 16:57:35 -08:00
2013-12-06 22:41:46 -08:00
2013-12-13 14:40:10 -08:00
2013-07-25 18:54:41 -07:00
2013-07-25 18:54:42 -07:00
2013-12-23 12:53:58 -08:00
2013-07-25 18:54:43 -07:00
2013-05-13 10:57:37 -07:00
2013-10-09 12:00:23 -07:00
2013-10-03 13:56:03 -07:00
2013-10-09 12:00:23 -07:00
2013-10-03 13:56:03 -07:00
2013-08-12 23:31:26 -07:00
2013-05-13 10:57:37 -07:00
2013-12-19 18:07:52 -08:00
2013-07-25 18:54:43 -07:00
2013-12-19 13:33:18 -08:00
2013-12-13 14:40:10 -08:00
2013-10-08 20:03:02 -07:00
2013-11-11 20:50:33 -08:00
2013-07-25 18:54:43 -07:00
2013-12-04 12:46:47 -08:00
2013-08-01 17:17:18 -07:00
2013-10-03 15:52:20 -07:00
2013-12-19 15:07:39 -08:00
2013-08-06 11:37:05 -07:00
2013-12-15 19:40:57 -08:00
2013-12-04 22:05:28 -08:00
2013-07-29 11:35:25 -07:00
2013-10-07 16:07:45 -07:00
2013-08-06 11:37:05 -07:00
2013-12-07 12:27:22 -08:00
2013-12-17 19:05:25 -08:00
2013-11-05 15:15:09 -08:00
2014-01-13 13:04:27 -08:00
2014-01-06 21:25:40 -08:00
2013-10-08 21:30:39 -07:00
2013-07-25 18:54:42 -07:00
2013-08-26 22:38:06 -07:00
2013-05-13 10:57:37 -07:00
2013-05-13 10:57:37 -07:00
2013-05-13 10:57:37 -07:00
2013-12-17 19:05:25 -08:00
2013-10-08 19:58:48 -07:00
2013-08-02 11:19:08 -07:00
2013-07-25 18:54:43 -07:00
2013-10-08 20:03:02 -07:00
2014-01-03 17:19:59 -08:00
2013-12-06 22:41:46 -08:00
2013-12-19 17:13:28 -08:00
2013-12-09 13:56:04 -08:00
2013-09-25 02:32:45 -07:00
2013-08-06 11:37:05 -07:00
2013-12-20 13:51:29 -08:00
2013-05-13 10:57:37 -07:00
2013-12-16 17:09:57 -08:00
2014-01-07 04:08:06 -08:00
2014-01-07 04:08:06 -08:00
2013-11-18 18:28:12 -08:00
2013-09-27 14:36:26 -07:00
2013-07-25 18:54:42 -07:00
2014-01-10 15:56:17 -05:00
2013-07-25 18:54:43 -07:00
2013-10-10 15:20:09 -07:00
2013-11-21 10:14:03 -08:00
2013-07-25 18:54:43 -07:00
2013-09-25 11:57:57 -07:00
2014-01-06 15:14:39 -08:00
2013-07-25 18:54:43 -07:00
2013-07-25 18:54:43 -07:00
2013-07-25 18:54:43 -07:00
2013-12-23 20:08:59 -08:00
2013-12-11 21:41:38 -08:00
2014-01-15 10:17:41 -08:00
2014-01-14 16:39:54 -08:00
2013-12-06 22:41:46 -08:00
2013-10-18 13:28:25 -07:00
2013-07-25 18:54:43 -07:00
2013-12-02 17:29:35 -08:00
2013-10-08 19:58:48 -07:00
2013-07-25 18:54:40 -07:00
2013-10-08 20:03:02 -07:00
2014-01-10 14:38:14 -08:00
2014-01-07 04:08:06 -08:00
2013-12-06 00:32:12 -08:00
2013-08-12 12:20:23 -07:00
2013-12-15 17:17:33 -08:00
2013-07-25 18:54:43 -07:00
2014-01-15 06:22:18 -08:00
2013-10-03 15:52:19 -07:00
2013-08-06 12:53:33 -07:00
2013-12-17 12:12:20 -08:00
2013-08-06 11:37:05 -07:00
2012-04-17 20:02:00 -07:00