From 92521321159148a5fd286d32b3c3ff8cbaa64142 Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Tue, 18 Jul 2017 08:21:22 +0200 Subject: [PATCH] added an example using echo and include --- examples/output-function.ejs | 8 ++++++++ examples/partial.ejs | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 examples/partial.ejs diff --git a/examples/output-function.ejs b/examples/output-function.ejs index 4eaff82a..80393609 100644 --- a/examples/output-function.ejs +++ b/examples/output-function.ejs @@ -8,3 +8,11 @@ }); -%> + + diff --git a/examples/partial.ejs b/examples/partial.ejs new file mode 100644 index 00000000..f77e83d3 --- /dev/null +++ b/examples/partial.ejs @@ -0,0 +1,4 @@ +
  • + <%= user.name %> + is a <%= user.age %> year old <%= user.species %> +
  • \ No newline at end of file