diff options
| author | Simon Wisselink <s.wisselink@iwink.nl> | 2023-02-05 23:14:10 +0100 |
|---|---|---|
| committer | Simon Wisselink <s.wisselink@iwink.nl> | 2023-02-05 23:14:10 +0100 |
| commit | 1e0d25638ef3e854e914c9c366393bd5598a440b (patch) | |
| tree | 2c3d099577f52e830d0a742b98a3c8d731c5e6b7 /docs/designers/language-basic-syntax.md | |
| parent | 51ed0d6791cfedbdf2492603d226618133154d70 (diff) | |
| download | smarty-1e0d25638ef3e854e914c9c366393bd5598a440b.tar.gz smarty-1e0d25638ef3e854e914c9c366393bd5598a440b.tar.bz2 smarty-1e0d25638ef3e854e914c9c366393bd5598a440b.zip | |
WIP improving the docs
Diffstat (limited to 'docs/designers/language-basic-syntax.md')
| -rw-r--r-- | docs/designers/language-basic-syntax.md | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/docs/designers/language-basic-syntax.md b/docs/designers/language-basic-syntax.md deleted file mode 100644 index 2509857c..00000000 --- a/docs/designers/language-basic-syntax.md +++ /dev/null @@ -1,33 +0,0 @@ -Basic Syntax -============ - -A simple Smarty template could look like this: -```html -<h1>{$title|escape}</h1> -<ul> - {foreach $cities as $city} - <li>{$city.name|escape} ({$city.population})</li> - {foreachelse} - <li>no cities found</li> - {/foreach} -</ul> -``` - -All Smarty template tags are enclosed within delimiters. By default -these are `{` and `}`, but they can be -[changed](../programmers/api-variables/variable-left-delimiter.md). - -For the examples in this manual, we will assume that you are using the -default delimiters. In Smarty, all content outside of delimiters is -displayed as static content, or unchanged. When Smarty encounters -template tags, it attempts to interpret them, and displays the -appropriate output in their place. - -The basis components of the Smarty syntax are: -- [Comments](./language-basic-syntax/language-syntax-comments.md) -- [Variables](./language-basic-syntax/language-syntax-variables.md) -- [Functions](./language-basic-syntax/language-syntax-functions.md) -- [Attributes](./language-basic-syntax/language-syntax-attributes.md) -- [Quotes](./language-basic-syntax/language-syntax-quotes.md) -- [Math](./language-basic-syntax/language-math.md) -- [Escaping](./language-basic-syntax/language-escaping.md) |
