mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fixed typos
This commit is contained in:
parent
68b892703d
commit
4130a4c7dd
@ -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": {
|
||||
|
@ -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.
|
||||
Если требуется вывести текст, содержащий фигурные скобки, помните о следующих возможностях:
|
||||
|
@ -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}
|
||||
```
|
@ -60,7 +60,7 @@ Planned. Not supported yet. Feature #5.
|
||||
{/block}
|
||||
```
|
||||
|
||||
### Perfomance
|
||||
### Performance
|
||||
|
||||
Алгоритм реализации наследования шаблонов может работать в разных режимах, в зависимости от условий.
|
||||
Каждый режим имеет свою производительность.
|
||||
|
@ -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...*}
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user