source: frontend/node_modules/ejs/usage.txt

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.6 KB
Line 
1EJS Embedded JavaScript templates
2{Usage}: ejs [options ...] template-file [data variables ...]
3
4{Options}:
5 -o, --output-file FILE Write the rendered output to FILE rather than stdout.
6 -f, --data-file FILE Must be JSON-formatted. Use parsed input from FILE as data for rendering.
7 -i, --data-input STRING Must be JSON-formatted and URI-encoded. Use parsed input from STRING as data for rendering.
8 -m, --delimiter CHARACTER Use CHARACTER with angle brackets for open/close (defaults to %).
9 -p, --open-delimiter CHARACTER Use CHARACTER instead of left angle bracket to open.
10 -c, --close-delimiter CHARACTER Use CHARACTER instead of right angle bracket to close.
11 -s, --strict When set to `true`, generated function is in strict mode
12 -n --no-with Use 'locals' object for vars rather than using `with` (implies --strict).
13 -l --locals-name Name to use for the object storing local variables when not using `with`.
14 -w --rm-whitespace Remove all safe-to-remove whitespace, including leading and trailing whitespace.
15 -d --debug Outputs generated function body
16 -h, --help Display this help message.
17 -V/v, --version Display the EJS version.
18
19{Examples}:
20 ejs -m $ ./test/fixtures/user.ejs -f ./user_data.json
21 ejs -m $ ./test/fixtures/user.ejs name=Lerxst
22 ejs -p [ -c ] ./template_file.ejs -o ./output.html
23 ejs -n -l _ ./some_template.ejs -f ./data_file.json
24 ejs -w ./template_with_whitspace.ejs -o ./output_file.html
Note: See TracBrowser for help on using the repository browser.