But put them in the right place

This commit is contained in:
mde
2020-04-26 21:59:42 -07:00
parent 9595c642d3
commit 6f8e138ca4
2 changed files with 3 additions and 2 deletions

View File

@@ -275,6 +275,8 @@ Here are some examples of usage:
```shell ```shell
$ ejs -p [ -c ] ./template_file.ejs -o ./output.html $ ejs -p [ -c ] ./template_file.ejs -o ./output.html
$ ejs ./test/fixtures/user.ejs name=Lerxst
$ ejs -n -l _ ./some_template.ejs -f ./data_file.json
``` ```
### Data input ### Data input
@@ -292,7 +294,6 @@ A data file:
```shell ```shell
$ ejs ./test/fixtures/user.ejs -f ./user_data.json $ ejs ./test/fixtures/user.ejs -f ./user_data.json
$ ejs -p [ -c ] ./template_file.ejs -o ./output.html
``` ```
A command-line option (must be URI-encoded): A command-line option (must be URI-encoded):

View File

@@ -18,7 +18,7 @@ EJS Embedded JavaScript templates
{Examples}: {Examples}:
ejs -m $ ./test/fixtures/user.ejs -f ./user_data.json ejs -m $ ./test/fixtures/user.ejs -f ./user_data.json
ejs -m $ ./test/fixtures/user.ejs name=Juan ejs -m $ ./test/fixtures/user.ejs name=Lerxst
ejs -p [ -c ] ./template_file.ejs -o ./output.html ejs -p [ -c ] ./template_file.ejs -o ./output.html
ejs -n -l _ ./some_template.ejs -f ./data_file.json ejs -n -l _ ./some_template.ejs -f ./data_file.json
ejs -w ./template_with_whitspace.ejs -o ./output_file.html ejs -w ./template_with_whitspace.ejs -o ./output_file.html