diff options
author | Jason Axelson <axelson@users.noreply.github.com> | 2019-08-04 23:08:59 -1000 |
---|---|---|
committer | Fernando Tapia Rico <fertapric@gmail.com> | 2019-08-05 11:08:59 +0200 |
commit | 99fa1dc7886cf428c5fa5404cb515397bdc5c276 (patch) | |
tree | e8aba42891e1b07206f3bbb3bc99e807b4f806ae | |
parent | 7c31ce174a4cde40366b941332aa25f885995639 (diff) | |
download | elixir-99fa1dc7886cf428c5fa5404cb515397bdc5c276.tar.gz |
Document escaping in EEx more clearly (#9265)
-rw-r--r-- | lib/eex/lib/eex.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/eex/lib/eex.ex b/lib/eex/lib/eex.ex index 2bc9b6377..20bdd0f51 100644 --- a/lib/eex/lib/eex.ex +++ b/lib/eex/lib/eex.ex @@ -76,6 +76,12 @@ defmodule EEx do This will never appear <% end %> + To escape an EEx expression in EEx use `<%% content %>`. For example: + + <%%= x + 3 %> + + will be rendered as `<%= x + 3 %>`. + Notice that different engines may have different rules for each tag. Other tags may be added in future versions. |