The folder hierarchy is pretty simple:
flaskapp
templates
components
pager.html
tempalte1.html
tempalte2.html
On Thu, Jul 10, 2014 at 8:57 PM, Zarey Chang <[email protected]> wrote:
> I can't make sure whether jinja2 could use this in templates, but the
> grammar u list could be written in py as i know.
> could u list the folder hierarchy about your project? I think the folder
> 'components' isn't related with the root folder.
> or maybe u could implement this in py file that I'm sure with
> http://stackoverflow.com/questions/9641317/jinja2-filesystemloader-load-all-subdirectories.
>
> 在 2014年7月11日星期五UTC+8上午5时20分27秒,shiqiang guo写道:
>>
>> I use standard flask .
>> I want to put some jinja2 templates into sub folder, and include it in
>> some other template,
>> Like this:
>>
>> {% include "components/pager.html" %}
>>
>> But the it thrown :
>>
>> raise TemplateNotFound(template)
>>
>> So how could I do that?
>>
>> Thanks
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pocoo-libs" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pocoo-libs/NeSLSdcfk9o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pocoo-libs.
> For more options, visit https://groups.google.com/d/optout.
--
Frank Guo
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.