[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

6. Templates

Dans le Smarty Mode, les fonctions Smarty (comme if, foreach) sont prédéfinies dans des fonctions appelées "Templates".

Chaque template peut être invoqué par le nom de la fonction ou en utilisant la touche SPACE après le nom de la fonction Smarty dans le buffer (Note, utiliser M-SPACE désactive le template).

Un template peut être annulé en utilisant C-g ou en laissant vide le prompt (dans le minibuffer).


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

6.1 Paramètres

`smarty-electric-mode'

Type : bool
Valeur par défaut : `t'
Description : Si `t'; active la génération automatique des templates. Si `nil'; les générateur de templates peuvent toujours être invoqués en utilisant les raccourcis clavier et le menu. L'activation de ce mode est indiquée par "/e" après le nom du mode et peut être modifié en utilisant `smarty-electric-mode'.

Pour une description complète des paramètres des templates, voir Template


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

6.2 Fonctions


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

6.2.1 Fonctions natives

`smarty-template-capture'

Menu : Smarty -> Templates -> Build-in Functions -> capture
Raccourci clavier : aucun
Description :

`smarty-template-config-load'

Menu : Smarty -> Templates -> Build-in Functions -> config_load
Raccourci clavier : aucun
Description :

`smarty-template-else'

Menu : Smarty -> Templates -> Build-in Functions -> else
Raccourci clavier : aucun
Description :

`smarty-template-elseif'

Menu : Smarty -> Templates -> Build-in Functions -> elseif
Raccourci clavier : aucun
Description :

`smarty-template-foreach'

Menu : Smarty -> Templates -> Build-in Functions -> foreach
Raccourci clavier : aucun
Description :

`smarty-template-foreachelse'

Menu : Smarty -> Templates -> Build-in Functions -> foreachelse
Raccourci clavier : aucun
Description :

`smarty-template-if'

Menu : Smarty -> Templates -> Build-in Functions -> if
Raccourci clavier : aucun
Description :

`smarty-template-include'

Menu : Smarty -> Templates -> Build-in Functions -> include
Raccourci clavier : aucun
Description :

`smarty-template-include-php'

Menu : Smarty -> Templates -> Build-in Functions -> include_php
Raccourci clavier : aucun
Description :

`smarty-template-insert'

Menu : Smarty -> Templates -> Build-in Functions -> insert
Raccourci clavier : aucun
Description :

`smarty-template-ldelim'

Menu : Smarty -> Templates -> Build-in Functions -> ldelim
Raccourci clavier : aucun
Description :

`smarty-template-literal'

Menu : Smarty -> Templates -> Build-in Functions -> literal
Raccourci clavier : aucun
Description :

`smarty-template-php'

Menu : Smarty -> Templates -> Build-in Functions -> php
Raccourci clavier : aucun
Description :

`smarty-template-rdelim'

Menu : Smarty -> Templates -> Build-in Functions -> rdelim
Raccourci clavier : aucun
Description :

`smarty-template-section'

Menu : Smarty -> Templates -> Build-in Functions -> section
Raccourci clavier : aucun
Description :

`smarty-template-sectionelse'

Menu : Smarty -> Templates -> Build-in Functions -> sectionelse
Raccourci clavier : aucun
Description :

`smarty-template-strip'

Menu : Smarty -> Templates -> Build-in Functions -> strip
Raccourci clavier : aucun
Description :


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

6.2.2 Fonctions utilisateur

`smarty-template-assign'

Menu : Smarty -> Templates -> Custom Functions -> assign
Raccourci clavier : aucun
Description :

`smarty-template-counter'

Menu : Smarty -> Templates -> Custom Functions -> counter
Raccourci clavier : aucun
Description :

`smarty-template-cycle'

Menu : Smarty -> Templates -> Custom Functions -> cycle
Raccourci clavier : aucun
Description :

`smarty-template-debug'

Menu : Smarty -> Templates -> Custom Functions -> debug
Raccourci clavier : aucun
Description :

`smarty-template-eval'

Menu : Smarty -> Templates -> Custom Functions -> eval
Raccourci clavier : aucun
Description :

`smarty-template-fetch'

Menu : Smarty -> Templates -> Custom Functions -> fetch
Raccourci clavier : aucun
Description :

`smarty-template-html-checkboxes'

Menu : Smarty -> Templates -> Custom Functions -> html_checkboxes
Raccourci clavier : aucun
Description :

`smarty-template-html-image'

Menu : Smarty -> Templates -> Custom Functions -> html_image
Raccourci clavier : aucun
Description :

`smarty-template-html-options'

Menu : Smarty -> Templates -> Custom Functions -> html_options
Raccourci clavier : aucun
Description :

`smarty-template-html-radios'

Menu : Smarty -> Templates -> Custom Functions -> html_radios
Raccourci clavier : aucun
Description :

`smarty-template-html-select-date'

Menu : Smarty -> Templates -> Custom Functions -> html_select_date
Raccourci clavier : aucun
Description :

`smarty-template-html-select-time'

Menu : Smarty -> Templates -> Custom Functions -> html_select_time
Raccourci clavier : aucun
Description :

`smarty-template-html-table'

Menu : Smarty -> Templates -> Custom Functions -> html_table
Raccourci clavier : aucun
Description :

`smarty-template-mailto'

Menu : Smarty -> Templates -> Custom Functions -> mailto
Raccourci clavier : aucun
Description :

`smarty-template-math'

Menu : Smarty -> Templates -> Custom Functions -> math
Raccourci clavier : aucun
Description :

`smarty-template-popup'

Menu : Smarty -> Templates -> Custom Functions -> popup
Raccourci clavier : aucun
Description :

`smarty-template-popup-init'

Menu : Smarty -> Templates -> Custom Functions -> popup_init
Raccourci clavier : aucun
Description :

`smarty-template-textformat'

Menu : Smarty -> Templates -> Custom Functions -> textformat
Raccourci clavier : aucun
Description :


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

6.2.3 Modificateurs de variable

`smarty-template-capitalize'

Menu : Smarty -> Templates -> Variable Modifiers -> capitalize
Raccourci clavier : aucun
Description :

`smarty-template-cat'

Menu : Smarty -> Templates -> Variable Modifiers -> cat
Raccourci clavier : aucun
Description :

`smarty-template-count-characters'

Menu : Smarty -> Templates -> Variable Modifiers -> count_characters
Raccourci clavier : aucun
Description :

`smarty-template-count-paragraphs'

Menu : Smarty -> Templates -> Variable Modifiers -> count_paragraphs
Raccourci clavier : aucun
Description :

`smarty-template-count-sentences'

Menu : Smarty -> Templates -> Variable Modifiers -> count_sentences
Raccourci clavier : aucun
Description :

`smarty-template-count-words'

Menu : Smarty -> Templates -> Variable Modifiers -> count_words
Raccourci clavier : aucun
Description :

`smarty-template-date-format'

Menu : Smarty -> Templates -> Variable Modifiers -> date_format
Raccourci clavier : aucun
Description :

`smarty-template-default'

Menu : Smarty -> Templates -> Variable Modifiers -> default
Raccourci clavier : aucun
Description :

`smarty-template-escape'

Menu : Smarty -> Templates -> Variable Modifiers -> escape
Raccourci clavier : aucun
Description :

`smarty-template-indent'

Menu : Smarty -> Templates -> Variable Modifiers -> indent
Raccourci clavier : aucun
Description :

`smarty-template-lower'

Menu : Smarty -> Templates -> Variable Modifiers -> lower
Raccourci clavier : aucun
Description :

`smarty-template-nl2br'

Menu : Smarty -> Templates -> Variable Modifiers -> nl2br
Raccourci clavier : aucun
Description :

`smarty-template-regex-replace'

Menu : Smarty -> Templates -> Variable Modifiers -> regex_replace
Raccourci clavier : aucun
Description :

`smarty-template-replace'

Menu : Smarty -> Templates -> Variable Modifiers -> replace
Raccourci clavier : aucun
Description :

`smarty-template-spacify'

Menu : Smarty -> Templates -> Variable Modifiers -> spacify
Raccourci clavier : aucun
Description :

`smarty-template-string-format'

Menu : Smarty -> Templates -> Variable Modifiers -> string_format
Raccourci clavier : aucun
Description :

`smarty-template-vstrip'

Menu : Smarty -> Templates -> Variable Modifiers -> strip
Raccourci clavier : aucun
Description :

`smarty-template-strip-tags'

Menu : Smarty -> Templates -> Variable Modifiers -> strip_tags
Raccourci clavier : aucun
Description :

`smarty-template-truncate'

Menu : Smarty -> Templates -> Variable Modifiers -> truncate
Raccourci clavier : aucun
Description :

`smarty-template-upper'

Menu : Smarty -> Templates -> Variable Modifiers -> upper
Raccourci clavier : aucun
Description :

`smarty-template-wordwrap'

Menu : Smarty -> Templates -> Variable Modifiers -> wordwrap
Raccourci clavier : aucun
Description :


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

6.2.4 Fonctions Non-Smarty

`smarty-template-header'

Menu : Smarty -> Templates -> Insert Header
Raccourci clavier : aucun
Description : Cette fonction est utilisée pour insérer une en-tête dans le buffer.

`smarty-template-footer'

Menu : Smarty -> Templates -> Insert Footer
Raccourci clavier : aucun
Description : Cette fonction est utilisée pour insérer un pied de page dans le buffer.

`smarty-template-insert-date'

Menu : Smarty -> Templates -> Insert Date
Raccourci clavier : aucun
Description : Cette fonction est utilisée pour insérer la date dans le buffer.

`smarty-template-modify'

Menu : Smarty -> Templates -> Modify Date
Raccourci clavier : aucun
Description : Cette fonction est utilisée pour modifier la date de dernière modification dans le buffer.


[ << ] [ >> ]           [Top] [Table des matières] [Index] [ ? ]

Ce document a été généré par Vincent DEBOUT le 12 Novembre 2006 en utilisant texi2html 1.76.