80 Commits

Author SHA1 Message Date
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
Patrick Steele-Idem
94e7a7a65e Cleaned up the tag helper 2014-06-18 21:08:13 -06:00
Patrick Steele-Idem
3f322ecfe5 Performance optimizations for template resolution in compiled templates 2014-06-18 17:16:36 -06:00
Phil Gates-Idem
258daee6db Fixing how arguments are deciphered in call to render 2014-06-01 15:50:17 -04:00
Phil Gates-Idem
2b485710e1 Check for process and render methods before assuming the renderer itself is the correct renderer 2014-05-27 00:44:30 -04:00
Patrick Steele-Idem
3244593b26 Create a Context if not provided 2014-05-08 23:20:24 -06:00
Patrick Steele-Idem
5c6ff73a35 Added API tests 2014-05-05 14:38:56 -06:00
Patrick Steele-Idem
510e063ea2 Simplified and optimized template loading 2014-05-05 12:03:22 -06:00
Patrick Steele-Idem
1c6dd4f6cc Flattened directory structure a bit by dropping lib 2014-04-29 22:21:20 -06:00
Patrick Steele-Idem
64be29ca79 Refactored out core taglibs into separate modules and cleaned up code 2014-04-28 22:29:54 -06:00
Patrick Steele-Idem
da274538ab Dropped support for namespaces and updated docs and tests 2014-04-14 13:44:38 -06:00
Patrick Steele-Idem
ad97b90224 Switched to using submodules from raptor-util 2014-04-09 16:13:06 -06:00
Patrick Steele-Idem
e6924cabc1 Switched to string concatenation instead of method calls for better performance 2014-04-07 16:42:20 -06:00
Patrick Steele-Idem
ed685f3702 Make sure template paths are resolved 2014-04-03 15:56:21 -06:00
Patrick Steele-Idem
e2f64a6549 Improved compilation and added a complete up-to-date check 2014-04-02 14:11:43 -06:00
Patrick Steele-Idem
8df1392074 Go back to old behavior and let the context end the stream 2014-03-28 16:20:19 -06:00
Patrick Steele-Idem
4521fd02d1 end the stream when the context ends 2014-03-28 15:49:01 -06:00
Patrick Steele-Idem
f80a32c815 Do not modify the prototype for Context 2014-03-26 11:25:58 -06:00
Patrick Steele-Idem
bf938a3cb6 Include file extension for browser overrides 2014-03-21 15:56:09 -06:00