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
============
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
{
"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}
```
### Ignoring temaplate code
### Ignoring template code
В шаблонизаторе Fenom используются фигурные скобки для отделения HTML от кода Fenom.
Если требуется вывести текст, содержащий фигурные скобки, помните о следующих возможностях:

View File

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

View File

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

View File

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

View File

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

View File

@ -564,7 +564,7 @@ class Compiler {
public static function tagParent($tokens, Scope $scope) {
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();
/**
* @var int tempalte options (see Fenom options)
* @var int template options (see Fenom options)
*/
protected $_options = 0;