mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
Fixes to documentation syntax so that all content can be processed used xsltproc docbook-xsl tools. In particular, fixes unescaped entities, broken tags, unquoted attributes.
This commit is contained in:
@@ -52,7 +52,7 @@ Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75
|
||||
</sect1>
|
||||
</chapter>
|
||||
<chapter id="tips">
|
||||
<title>Tips & Tricks</title>
|
||||
<title>Tips & Tricks</title>
|
||||
<para>
|
||||
</para>
|
||||
<sect1 id="tips.blank.var.handling">
|
||||
@@ -185,7 +185,7 @@ OUTPUT:
|
||||
2001/01/04
|
||||
|
||||
|
||||
{if $date1 < $date2}
|
||||
{if $date1 < $date2}
|
||||
...
|
||||
{/if}</programlisting>
|
||||
</example>
|
||||
@@ -288,7 +288,7 @@ Pretty easy isn't it?
|
||||
You can embed PHP into your templates with the {php}{/php} tags.
|
||||
With this, you can setup self contained templates with their own
|
||||
data structures for assigning their own variables. With the logic
|
||||
embedded like this, you can keep the template & logic together. This
|
||||
embedded like this, you can keep the template & logic together. This
|
||||
way no matter where the template source is coming from, it is always
|
||||
together as one component.
|
||||
</para>
|
||||
@@ -300,7 +300,7 @@ Pretty easy isn't it?
|
||||
{php}
|
||||
|
||||
// setup our function for fetching stock data
|
||||
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) {
|
||||
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) {
|
||||
// put logic here that fetches $ticker_name
|
||||
// and $ticker_price from some resource
|
||||
}
|
||||
@@ -331,7 +331,7 @@ load_ticker.php
|
||||
|
||||
<?php
|
||||
// setup our function for fetching stock data
|
||||
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) {
|
||||
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) {
|
||||
// put logic here that fetches $ticker_name
|
||||
// and $ticker_price from some resource
|
||||
}
|
||||
@@ -401,4 +401,4 @@ Send inquiries to
|
||||
check the website.
|
||||
</para>
|
||||
</chapter>
|
||||
</part>
|
||||
</part>
|
||||
Reference in New Issue
Block a user