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

literal

Las etiquetas literal permiten que un block de datos sea tomado literalmente, no siendo interpretado por el smarty. Esto es generalmente utilizado alrededor de bloques javascript o stylesheet, en donde pueden haber sintaxis delimitadoras que puedan interferir con el template. Cualquer cosa dentro de las etiquetas {literal}{/literal} no es interpretado, si no desplegado tal como esta. Si usted necesita en su template etiquetas incrustadas en su bloque de literal, considere usar {ldelim}{rdelim} para escapar delimitadores individuales en lugar de eso.

Example 7.15. Etiqueta literal


{literal}
	<script type="text/javascript">

        	<!--
                	function isblank(field) {
                	if (field.value == '')
                        	{ return false; }
                	else
                        	{
                        	document.loginform.submit();
                        	return true;
                        	}
                	}
        	// -->

	</script>
{/literal}

   

Ver también Escaping Smarty Parsing.

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 19 plus 0? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
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
ASP.NET hosting @aspnethosting.co.uk