148 Commits

Author SHA1 Message Date
Patrick Steele-Idem
89a9b44dd8 Fixes #88 - Assign global data to the correct out 2015-06-05 19:02:28 -06:00
Patrick Steele-Idem
b96ee8b4cb Performance improvements 2015-05-27 11:20:34 -06:00
Patrick Steele-Idem
c41b8d99b8 create fs read options once 2015-05-27 11:07:21 -06:00
Patrick Steele-Idem
76460f3be8 'use strict' for helpers 2015-05-27 11:05:34 -06:00
Patrick Steele-Idem
7c00085380 #78 Change compiled templates to export a loaded Template instance 2015-05-26 16:57:39 -06:00
Patrick Steele-Idem
41e92df68c Fixes #78 - Passthrough if a provided template is already a loaded template instance 2015-05-22 15:20:28 -06:00
Patrick Steele-Idem
62dcc4e3bf Added @deprecated tags for top-level render and stream methods 2015-05-22 14:23:27 -06:00
Patrick Steele-Idem
183c3c62c4 Fixes #61 Simplify parent/child relationships 2015-04-23 18:43:41 -06:00
Patrick Steele-Idem
6e95e97d49 Minor cleanup for #66 2015-04-23 13:41:13 -06:00
Patrick Steele-Idem
0d187d8b9c Fixes #66 - Allow circular dependencies when loading templates 2015-04-22 20:26:07 -06:00
Patrick Steele-Idem
7179fc697d Fixes #58 Added support for MARKO_CLEAN env variable 2015-04-02 17:34:20 -06:00
Patrick Steele-Idem
e3e2a26834 Fixes #50 Initialize the loader after the runtime is fully initialized 2015-03-19 15:22:38 -06:00
Patrick Steele-Idem
dc5aa43e02 Fixes #50 Ensure that all instances of marko have hot-reload and browser-refresh enabled 2015-03-19 12:30:03 -06:00
Patrick Steele-Idem
831ca8f3f4 Slight improvement to code to resolve tag handler 2015-03-18 11:43:11 -06:00
Patrick Steele-Idem
7d0f0582bd Improve how renderer is resolved 2015-03-18 11:39:05 -06:00
Patrick Steele-Idem
4c3bb5ac08 Only set global if $global is provided 2015-03-16 14:28:15 -06:00
Patrick Steele-Idem
a936c93b4c Fixes #36 - Deprecate invokeBody for <include> 2015-02-23 17:44:42 -07:00
Patrick Steele-Idem
79aa92254f Fixes #36 Deprecated invokeBody in favor of renderBody 2015-02-23 16:35:30 -07:00
Patrick Steele-Idem
4d9cdfa706 Fixed #33 2015-02-16 13:03:53 -07:00
Patrick Steele-Idem
94ad082fbd Added code to still allow old compiled templates to load correctly 2015-02-16 07:38:28 -07:00
Patrick Steele-Idem
9da27606dd Fixes #32 Don't use module.exports in compiled output 2015-02-13 17:49:02 -07:00
Patrick Steele-Idem
a95584775e Changes to prevent unoptimized code in V8 2015-02-11 15:04:12 -07:00
icma
90f7dbf8c4 Support $global in template.renderSync
* https://github.com/raptorjs/marko/issues/28
2015-02-04 16:45:05 -08:00
Benjamin Kniffler
bd3a2fa7e9 Add support for .marko.html templates 2015-01-31 17:02:29 +01:00
Patrick Steele-Idem
49a6778d24 More comments in the code 2015-01-07 23:37:10 -08:00
Patrick Steele-Idem
0500271787 Fixed #12 Expose AsyncWriter instance when using callback function with template.render 2014-12-30 09:53:50 -07:00
Patrick Steele-Idem
0335a06aab Allow a template factory function to be provided to __helper.l
Fixes the following issue: https://github.com/raptorjs/markoify/issues/1
2014-12-27 11:26:18 -07:00
Patrick Steele-Idem
009e99bfe9 Provide hooks to clear caches 2014-12-10 15:21:37 -07:00
Patrick Steele-Idem
adc46efc65 Only invoke callback once in case of an error 2014-11-06 13:32:44 -07:00
Patrick Steele-Idem
6af85c02b7 Default to buffering when streaming template rendering 2014-11-05 11:04:01 -07:00
Patrick Steele-Idem
09da9c82b8 #3 Template writing to disk should be atomic 2014-10-22 15:05:39 -06:00
Patrick Steele-Idem
2ad817a20d Add some error checking for an invalid template path 2014-10-22 11:10:58 -06:00
Patrick Steele-Idem
13fb3b8b78 Make notEmpty more robust 2014-10-20 12:30:05 -06:00
Patrick Steele-Idem
b089b751b4 Trick the JavaScript module bundlers to prevent bundling view-engine 2014-10-15 11:02:05 -06:00
Patrick Steele-Idem
2f7cac5ef9 Allow non-Marko templates to also be loaded through the view-engine 2014-10-15 09:46:45 -06:00
Phil Gates-Idem
7630333de5 AsyncWriter now emits "finish" (not "end") to conform to Writable stream spec. If given callback then we now listen for "finish" and not "end". 2014-10-10 21:09:32 -04:00
Patrick Steele-Idem
a350c008fb Copy $global props to out.global 2014-09-25 10:58:22 -06:00
Patrick Steele-Idem
7e2925fb00 isRenderContext --> isAsyncWriter 2014-09-22 13:48:02 -06:00
Patrick Steele-Idem
33ab7744a9 Renamed "context" to "out" 2014-09-19 09:33:04 -06:00
Patrick Steele-Idem
55b559f981 Additional renames to Marko 2014-09-19 07:22:03 -06:00
Patrick Steele-Idem
36a51b05bb Renamed to marko 2014-09-18 18:02:41 -06:00
Patrick Steele-Idem
e49d0f31cb Simplified checkUpToDate() and added getLastModified() 2014-09-12 17:02:01 -06:00
Phil Gates-Idem
a49554b4cb When compiling templates that use string concatenation, treat null and undefined as empty strings so that the the literal "null" and "undefined" don't get written 2014-08-13 00:37:18 -04:00
Patrick Steele-Idem
3268f144a9 Changed Context.prototype.write() to call toString() instead 2014-08-12 14:35:17 -06:00
Phil Gates-Idem
bb5314e633 Automatically call toString() when writing data to output stream (used to fix errors that might happen if you do something like context.w(3)) 2014-08-10 18:52:33 -04:00
Patrick Steele-Idem
8b139199b2 Added support for template.renderSync() 2014-07-19 13:24:13 -06:00
Phil Gates-Idem
9ceded3078 Check handler.process and handler.render before using handler itself as renderer 2014-07-11 09:46:05 -04:00
Patrick Steele-Idem
52d7457f1c Added support for rendering to an existing stream 2014-06-18 21:35:11 -06:00
Patrick Steele-Idem
9905574046 Deleted unused module 2014-06-18 21:11:04 -06:00
Patrick Steele-Idem
adc58f21cc Separate function after figuring out args 2014-06-18 21:10:58 -06:00