projects / org / mugo.ca / mugojstools
Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
mugojstools | Mugo.ca | stable |
Version | Compatible with |
---|---|
N/A | N/A |
This extension provides JavaScript template operators for eZ Publish template files.
You can pass (or pipe) a string
{mjs_console_log("Foo!")}
a variable,
{def $foo="Bar!"}
{mjs_console_log($foo)}
a hash or object,
{def $foo=fetch( 'user', 'current_user' )}
{mjs_console_log($foo)}
or a node (complete with data_map):
{def $foo = fetch( 'content', 'node', hash(
'node_id', 123
))}
{mjs_console_log($foo)}
MIT License. Copyright (C) 2016 Mugo Web.