Thanks for your support, Alessandro

León Domingo

Ender - Factoría de Software
[email protected] <[email protected]>
Avda. Cerro del Águila, 7. S23 - 2ª Planta
28703 S.S. de los Reyes (MADRID)
Tlf. 902 01 44 01

<http://www.ender.es/>
<http://www.facebook.com/home.php?#%21/pages/San-Sebastian-de-los-Reyes-Spain/Ender-Factoria-de-Software/142213119143359?ref=ts>
* <http://www.ender.es>*


On 8 April 2012 14:33, Alessandro Molina <[email protected]>wrote:

> On 4/7/12, León Domingo <[email protected]> wrote:
> > Hi,
> > Congratulations for the new release!
> >
> > I don't really understand the meaning of this code. Why the extension
> > determines the loader to be used? I have templates with other extenions
> > besides .html.
>
> When using dotted names you are expected not to specify the extension
> of the file.
> The expected syntax is @expose('proj.templates.index') and not
> @expose('proj.templates.index.html') for that reason the loaders
> supposed that you aren't using the dotted notation if you specified an
> extension to the template because in that case you probably wrote
> @expose('proj/templates/index.html') and you don't want TG to be
> trying to load the "proj/templates/index/html.html" file.
>
> That is the reason why the loaders usually disable the dotted notation
> format if you specified the file extension.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to