From 70d3b47ca29e6cecd58480b75d0bda108e6c6997 Mon Sep 17 00:00:00 2001 From: bzick Date: Sat, 28 Jun 2014 22:17:52 +0400 Subject: [PATCH] Doc for #80 --- docs/readme.md | 1 + docs/tags/unset.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 docs/tags/unset.md diff --git a/docs/readme.md b/docs/readme.md index 8486459..26556f8 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -32,6 +32,7 @@ Documentation * [macro](./tags/macro.md) and `import` — template functions * [autoescape](./tags/autoescape.md) — escape template fragment * [raw](./tags/raw.md) — unescape template fragment +* [unset](./tags/unset.md) — unset a given variables * or [add](./ext/extend.md#add-tags) yours diff --git a/docs/tags/unset.md b/docs/tags/unset.md new file mode 100644 index 0000000..2d3a065 --- /dev/null +++ b/docs/tags/unset.md @@ -0,0 +1,12 @@ +Tag {unset} +=========== + +Unset a given variables. + +```smarty + +{unset $a} unset single variable + +{unset $a $b $c.d.e} multiple unset + +``` \ No newline at end of file