The include statement is exactly what I was looking for and works perfectly.

Thanks,
J.D.

On Wed, Nov 19, 2014 at 11:10 AM, J.D. <[email protected]> wrote:

> Yeah sorry for the confusion,
>
> I have a block of markup that is duplicated across multiple HTML pages and
> want to extract it out to a separate file and include it in the pages that
> require it.
>
> I will look at the include statement documentation.
>
> Thanks,
> J.D.
>
> On Wednesday, November 19, 2014 11:05:02 AM UTC-7, Markus Unterwaditzer
> wrote:
>>
>> Hello,
>>
>> It is really unclear what you're asking for, but I think you might want
>> to take
>> a look at the include-statement in Jinja:
>>
>> http://jinja.pocoo.org/docs/dev/templates/#include
>>
>> Most features for HTML-compositing are listed in this document.
>>
>> -- Markus
>>
>> On Wed, Nov 19, 2014 at 08:25:01AM -0800, J.D. wrote:
>> > I recently started using Flask UI for a prototype I am working on and
>> have
>> > common HTML that is shared across multiple pages in my application.
>> >
>> > I am wondering if there is a mechanism in Flask that supports embedding
>> > html fragments.
>> >
>> > I know I can probably just use JQuerys .load(...) functionality but
>> > wondered if there was a Flask way of supporting HTML fragments.
>> >
>> > THanks,
>> > J.D.
>> >
>> > --
>> > 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.
>>
>  --
> 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/jPjbXr2Whyk/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.
>

-- 
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.

Reply via email to