Get Smarty

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

ldelim,rdelim (Ausgabe der Trennzeichen)

ldelim und rdelim werden verwendet, um die Trennzeichen auszugeben - in unserem Fall "{" oder "}" - ohne dass Smarty versucht, sie zu interpretieren. Um text im Template vor dem Interpretieren zu schützen kann auch {literal}{/literal} verwendet werden. Siehe auch {$smarty.ldelim}.

Example 7.14. ldelim, rdelim


{* gibt die konfigurierten Trennzeichen des Templates aus *}

{ldelim}funktionsname{rdelim} Funktionen sehen in Smarty so aus!

   

Das obige Beispiel ergibt als Ausgabe:


{funktionsname} Funktionen sehen in Smarty so aus!</programlisting>

   

Ein weiteres Beispiel (diesmal mit javascript)


<script language="JavaScript">
function foo() {ldelim}
    ... code ...
{rdelim}
</script>

   

Ausgabe:


<script language="JavaScript">
function foo() {
    .... code ...
}
</script>

   

Siehe auch Smarty Parsing umgehen

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 7 plus 5? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
Cheap Hosting @HostsVault
email marketing @ActiveCampaign
broadband deals @BroadbandGenie
Best UK Web Hosting @webhost.uk.net
Reliable UK and US Web Hosting @rshosting.com
Cheap US and UK Web Hosting @infrenion.com
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
Certification Practice Exam Questions @ace-it-certifications.com
Broadband Speed Test @broadbandspeed.co.uk
bulk email software @americaint.com