[BlueBream] Re : zope templating

Tamer Higazi th982a at googlemail.com
Sun Jul 4 18:31:00 EDT 2010


Thank you Christoph.

Last question about this subject:

let us say....

JS content

<head>
<script language="text/javascript>
function MyBlock()
{
....

....
}
</script>
<head>


....

how would you make the function with ZTPL disappear?!

and the other question:
Is there a way to make sub templating with ZTPL?!

let us say one for the base layout
the next one for the navigation left (menu)
and the 3rd one for the content....


Tamer



Am 01.07.2010 12:25, schrieb Christophe Combelles:
> You have several ways of doing it:
> either use the omit-tag Tal attribute, or use tal-replace if you don't
> want the tag, or use an tag in the tal namespace like <tal:block
> content=...
> or use a macro to include something from a child template, or event
> create a content-provider
>
> Christophe
>
> ----- Reply message -----
> De : "Tamer Higazi" <th982a at googlemail.com>
> Date : mer., juin 30, 2010 23:48
> Objet : [BlueBream] zope templating
> Pour : <bluebream at zope.org>
>
> Hi people!
> Question, is there anyway to use the ZTPL to create content on the fly
> whereever in the document? Or will I ALWAYS have to set the tal
> attribute in a tag.
>
> for me specially usefull to decide generating JS code and take out
> certain segments of a document if I want to.
>
>
>
> Tamer
> _______________________________________________
> bluebream mailing list
> bluebream at zope.org
> https://mail.zope.org/mailman/listinfo/bluebream
>
>
>
> _______________________________________________
> bluebream mailing list
> bluebream at zope.org
> https://mail.zope.org/mailman/listinfo/bluebream
>   



More information about the bluebream mailing list