Re: insert html in html

2010-05-19 Thread CrabbyPete
Brian,

Thanks. The safe filter worked for me. I was writing it to a file and
then doing an {% include calendar %}, but your solution worked out.

On May 18, 7:00 pm, Brian Neal  wrote:
> On May 18, 2:00 pm,CrabbyPete wrote:
>
> > I want to insert a html calendar into an existing web page. What is
> > the best way to insert html into a template that I have for the web
> > page?
>
> In what form do you have this calendar HTML? Do you compute it in a
> view? Is it already in a file? If you have it in a view, then one way
> to do it would be to pass it to a template and in the template:
>
> My Calendar
> 
> {{ my_calendar_data|safe }}
> 
>
> You could make this a template tag, or {% include %} it, or put it in
> your base template...
>
> We'd need more information to help further.
>
> Hope that helps.
> BN
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: insert html in html

2010-05-18 Thread Brian Neal
On May 18, 2:00 pm, CrabbyPete  wrote:
> I want to insert a html calendar into an existing web page. What is
> the best way to insert html into a template that I have for the web
> page?

In what form do you have this calendar HTML? Do you compute it in a
view? Is it already in a file? If you have it in a view, then one way
to do it would be to pass it to a template and in the template:

My Calendar

{{ my_calendar_data|safe }}


You could make this a template tag, or {% include %} it, or put it in
your base template...

We'd need more information to help further.

Hope that helps.
BN

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



insert html in html

2010-05-18 Thread CrabbyPete
I want to insert a html calendar into an existing web page. What is
the best way to insert html into a template that I have for the web
page?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.