mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Updated docs
This commit is contained in:
parent
4d1f92251d
commit
397e4384d5
@ -1,4 +1,4 @@
|
||||
Template Compilation
|
||||
Marko Compiler
|
||||
====================
|
||||
|
||||
The Marko compiler produces a Node.js-compatible, CommonJS module as output. This output format has the advantage that compiled template modules can benefit from a context-aware module loader and templates can easily be transported to work in the browser using [Lasso.js](https://github.com/lasso-js/lasso) or [Browserify](https://github.com/substack/node-browserify).
|
||||
@ -142,4 +142,8 @@ Despite rendering the first chunk asynchronously, the above program will stream
|
||||
BEGIN Hello World! END
|
||||
```
|
||||
|
||||
For more details, please see the documentation for the [async-writer](https://github.com/marko-js/async-writer) module.
|
||||
For more details, please see the documentation for the [async-writer](https://github.com/marko-js/async-writer) module.
|
||||
|
||||
# Hot Reloading Templates
|
||||
|
||||
During development it is very beneficial to not have to restart the server in order for changes to already loaded templates to be reflected. Marko supports hot reloading of templates on the server, but this feature must be explicitly enabled. Enabling hot reloading is documented as part of the following sample app: [marko-js-samples/marko-hot-reload](https://github.com/marko-js-samples/marko-hot-reload)
|
||||
@ -1,4 +0,0 @@
|
||||
Hot Reloading Templates
|
||||
=======================
|
||||
|
||||
During development it is very beneficial to not have to restart the server in order for changes to already loaded templates to be reflected. Marko supports hot reloading of templates on the server, but this feature must be explicitly enabled. Enabling hot reloading is documented as part of the following sample app: [marko-js-samples/marko-hot-reload](https://github.com/marko-js-samples/marko-hot-reload)
|
||||
Loading…
x
Reference in New Issue
Block a user