Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
Updated volt.rst add join and format filter demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamsxin committed May 14, 2015
1 parent 0aef184 commit 9825f36
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
8 changes: 7 additions & 1 deletion en/reference/volt.rst
Expand Up @@ -249,6 +249,12 @@ Examples:
{# keys filter #}
{% set keys=['first': 1, 'second': 2, 'third': 3]|keys %}
{# join filter #}
{% "a".."z"|join(",") %}
{# format filter #}
{% "My real name is %s"|format(name) %}
{# json_encode filter #}
{% robots|json_encode %}
Expand Down Expand Up @@ -924,7 +930,7 @@ Also, Volt is integrated with :doc:`Phalcon\\Mvc\\View <views>`, you can play wi
<div id="footer">{{ partial("partials/footer") }}</div>

<!-- Passing extra variables -->
<div id="footer">{{ partial("partials/footer", ['links': $links]) }}</div>
<div id="footer">{{ partial("partials/footer", ['links': links]) }}</div>

A partial is included in runtime, Volt also provides "include", this compiles the content of a view and returns its contents
as part of the view which was included:
Expand Down
8 changes: 7 additions & 1 deletion ja/reference/volt.rst
Expand Up @@ -244,6 +244,12 @@ Examples:
{# keys filter #}
{% set keys=['first': 1, 'second': 2, 'third': 3]|keys %}
{# join filter #}
{% "a".."z"|join(",") %}
{# format filter #}
{% "My real name is %s"|format(name) %}
{# json_encode filter #}
{% robots|json_encode %}
Expand Down Expand Up @@ -919,7 +925,7 @@ Also, Volt is integrated with :doc:`Phalcon\\Mvc\\View <views>`, you can play wi
<div id="footer">{{ partial("partials/footer") }}</div>

<!-- Passing extra variables -->
<div id="footer">{{ partial("partials/footer", ['links': $links]) }}</div>
<div id="footer">{{ partial("partials/footer", ['links': links]) }}</div>

A partial is included in runtime, Volt also provides "include", this compiles the content of a view and returns its contents
as part of the view which was included:
Expand Down
8 changes: 7 additions & 1 deletion pl/reference/volt.rst
Expand Up @@ -245,6 +245,12 @@ Examples:
{# keys filter #}
{% set keys=['first': 1, 'second': 2, 'third': 3]|keys %}
{# join filter #}
{% "a".."z"|join(",") %}
{# format filter #}
{% "My real name is %s"|format(name) %}
{# json_encode filter #}
{% robots|json_encode %}
Expand Down Expand Up @@ -920,7 +926,7 @@ Also, Volt is integrated with :doc:`Phalcon\\Mvc\\View <views>`, you can play wi
<div id="footer">{{ partial("partials/footer") }}</div>

<!-- Passing extra variables -->
<div id="footer">{{ partial("partials/footer", ['links': $links]) }}</div>
<div id="footer">{{ partial("partials/footer", ['links': links]) }}</div>

A partial is included in runtime, Volt also provides "include", this compiles the content of a view and returns its contents
as part of the view which was included:
Expand Down
8 changes: 7 additions & 1 deletion pt/reference/volt.rst
Expand Up @@ -244,6 +244,12 @@ Examples:
{# keys filter #}
{% set keys=['first': 1, 'second': 2, 'third': 3]|keys %}
{# join filter #}
{% "a".."z"|join(",") %}
{# format filter #}
{% "My real name is %s"|format(name) %}
{# json_encode filter #}
{% robots|json_encode %}
Expand Down Expand Up @@ -919,7 +925,7 @@ Also, Volt is integrated with :doc:`Phalcon\\Mvc\\View <views>`, you can play wi
<div id="footer">{{ partial("partials/footer") }}</div>

<!-- Passing extra variables -->
<div id="footer">{{ partial("partials/footer", array('links' => $links)) }}</div>
<div id="footer">{{ partial("partials/footer", array('links' => links)) }}</div>

A partial is included in runtime, Volt also provides "include", this compiles the content of a view and returns its contents
as part of the view which was included:
Expand Down
8 changes: 7 additions & 1 deletion ru/reference/volt.rst
Expand Up @@ -234,6 +234,12 @@ Volt был написан под вдохновлением от Jinja_, кот
{# keys filter #}
{% set keys=['first': 1, 'second': 2, 'third': 3]|keys %}
{# join filter #}
{% "a".."z"|join(",") %}
{# format filter #}
{% "My real name is %s"|format(name) %}
{# json_encode filter #}
{% robots|json_encode %}
Expand Down Expand Up @@ -911,7 +917,7 @@ Volt сильно связан с :doc:`Phalcon\\Tag <tags>`, поэтому м
<div id="footer">{{ partial("partials/footer") }}</div>

<!-- Passing extra variables -->
<div id="footer">{{ partial("partials/footer", ['links': $links]) }}</div>
<div id="footer">{{ partial("partials/footer", ['links': links]) }}</div>

Partial включается в момент выполнения, Volt так же предоставляет "include", которая собирает содержимое представления и возвращает его в виде включаемой части:

Expand Down
8 changes: 7 additions & 1 deletion zh/reference/volt.rst
Expand Up @@ -248,6 +248,12 @@ Examples:
{# keys filter #}
{% set keys=['first': 1, 'second': 2, 'third': 3]|keys %}
{# join filter #}
{% "a".."z"|join(",") %}
{# format filter #}
{% "My real name is %s"|format(name) %}
{# json_encode filter #}
{% robots|json_encode %}
Expand Down Expand Up @@ -923,7 +929,7 @@ Also, Volt is integrated with :doc:`Phalcon\\Mvc\\View <views>`, you can play wi
<div id="footer">{{ partial("partials/footer") }}</div>

<!-- Passing extra variables -->
<div id="footer">{{ partial("partials/footer", ['links': $links]) }}</div>
<div id="footer">{{ partial("partials/footer", ['links': links]) }}</div>

A partial is included in runtime, Volt also provides "include", this compiles the content of a view and returns its contents
as part of the view which was included:
Expand Down

0 comments on commit 9825f36

Please sign in to comment.