From 93f246282e5215dc02610e3158baea65ac0d3452 Mon Sep 17 00:00:00 2001 From: bzick Date: Wed, 20 Feb 2013 17:57:52 +0400 Subject: [PATCH] Update docs --- docs/tags/import.md | 6 ++++++ docs/tags/macros.md | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 docs/tags/import.md create mode 100644 docs/tags/macros.md diff --git a/docs/tags/import.md b/docs/tags/import.md new file mode 100644 index 0000000..4104a35 --- /dev/null +++ b/docs/tags/import.md @@ -0,0 +1,6 @@ +Tag {import} +============ + +```smarty +{import 'page.macros.tpl'} +``` \ No newline at end of file diff --git a/docs/tags/macros.md b/docs/tags/macros.md new file mode 100644 index 0000000..8a4fc3a --- /dev/null +++ b/docs/tags/macros.md @@ -0,0 +1,15 @@ +Tag {macros} +============ + + +```smarty +declare macros + +{macros.paginator(current, total, skip=true)} + ... paginator code ... +{/macros} +... +invoke macros + +{macros.paginator current=$page total=100} +``` \ No newline at end of file