Fixed typos

This commit is contained in:
Pascal Borreli 2013-07-04 21:02:24 +01:00
parent 68b892703d
commit 4130a4c7dd
8 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
Installation Installation
============ ============
For installation use [composer](http://getcompoer.org). Add in your `composer.json` requirements: For installation use [composer](http://getcomposer.org). Add in your `composer.json` requirements:
```json ```json
{ {
"require": { "require": {

View File

@ -196,7 +196,7 @@ but if use single quote any template expressions will be on display as it is
{funct arg=($a.d.c|count+4)/3} {funct arg=($a.d.c|count+4)/3}
``` ```
### Ignoring temaplate code ### Ignoring template code
В шаблонизаторе Fenom используются фигурные скобки для отделения HTML от кода Fenom. В шаблонизаторе Fenom используются фигурные скобки для отделения HTML от кода Fenom.
Если требуется вывести текст, содержащий фигурные скобки, помните о следующих возможностях: Если требуется вывести текст, содержащий фигурные скобки, помните о следующих возможностях:

View File

@ -11,7 +11,7 @@ This content will be captured into variable $var
```smarty ```smarty
{capture|stip_tags $var} {capture|strip_tags $var}
This content will be captured into variable $var and all tags will be stripped This content will be captured into variable $var and all tags will be stripped
{/capture} {/capture}
``` ```

View File

@ -60,7 +60,7 @@ Planned. Not supported yet. Feature #5.
{/block} {/block}
``` ```
### Perfomance ### Performance
Алгоритм реализации наследования шаблонов может работать в разных режимах, в зависимости от условий. Алгоритм реализации наследования шаблонов может работать в разных режимах, в зависимости от условий.
Каждый режим имеет свою производительность. Каждый режим имеет свою производительность.

View File

@ -6,7 +6,7 @@ Tag {if} [RU]
```smarty ```smarty
{if <expression>} {if <expression>}
{* ...code... *} {* ...code... *}
{elseif <expresion>} {elseif <expression>}
{* ...code... *} {* ...code... *}
{else} {else}
{* ...code... *} {* ...code... *}
@ -16,7 +16,7 @@ Tag {if} [RU]
### {if} ### {if}
```smarty ```smarty
{if <expresion>} {if <expression>}
{*...some code...*} {*...some code...*}
{/if} {/if}
``` ```
@ -26,9 +26,9 @@ Tag {if} [RU]
### {elseif} ### {elseif}
```smarty ```smarty
{if <expresion1>} {if <expression1>}
{*...some code...*} {*...some code...*}
{elseif <expresion2>} {elseif <expression2>}
{*...some code...*} {*...some code...*}
{/if} {/if}
``` ```
@ -38,7 +38,7 @@ Tag {if} [RU]
### {else} ### {else}
```smarty ```smarty
{if <expresion>} {if <expression>}
{*...some code...*} {*...some code...*}
{else} {else}
{*...some code...*} {*...some code...*}

View File

@ -234,7 +234,7 @@ class Fenom {
throw new InvalidArgumentException("Source must be a valid path or provider object"); throw new InvalidArgumentException("Source must be a valid path or provider object");
} }
$fenom = new static($provider); $fenom = new static($provider);
/* @var Fenom $fytro */ /* @var Fenom $fenom */
$fenom->setCompileDir($compile_dir); $fenom->setCompileDir($compile_dir);
if($options) { if($options) {
$fenom->setOptions($options); $fenom->setOptions($options);

View File

@ -564,7 +564,7 @@ class Compiler {
public static function tagParent($tokens, Scope $scope) { public static function tagParent($tokens, Scope $scope) {
if(empty($scope->tpl->_extends)) { if(empty($scope->tpl->_extends)) {
throw new InvalidUsageException("Tag {parent} may be declared in childs"); throw new InvalidUsageException("Tag {parent} may be declared in children");
} }
} }

View File

@ -57,7 +57,7 @@ class Render extends \ArrayObject {
protected $_depends = array(); protected $_depends = array();
/** /**
* @var int tempalte options (see Fenom options) * @var int template options (see Fenom options)
*/ */
protected $_options = 0; protected $_options = 0;