From 4af896b9dc48a47ef6f9a02a7309c2d37b429984 Mon Sep 17 00:00:00 2001 From: fabien Date: Wed, 6 Jan 2010 08:21:18 +0000 Subject: [PATCH] updated doc git-svn-id: http://svn.twig-project.org/trunk@209 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- doc/02-Twig-for-Template-Designers.markdown | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index a2557bd..7da2faf 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -750,6 +750,9 @@ but exists for completeness' sake. The following operators are supported: * `%`: Calculate the remainder of an integer division. `{{ 11 % 7 }}` is `4`. + * `//`: Divide two numbers and return the truncated integer result. `{{ 20 // + 7 }}` is `2`. + * `*`: Multiply the left operand with the right one. `{{ 2 * 2 }}` would return `4`. This can also be used to repeat a string multiple times. `{{ '=' * 80 }}` would print a bar of 80 equal signs. @@ -846,14 +849,6 @@ otherwise: [twig] {{ var|odd ? 'odd' : 'even' }} -### `floor` - -The `floor` filter divides two numbers and return the truncated integer -result - - [twig] - {{ 20|floor(7) }} {# returns 2 #} - ### `encoding` The `encoding` filter URL encode a given string. -- 1.7.2.5