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.

Reply via email to