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 <bgn...@gmail.com> wrote: > On May 18, 2:00 pm,CrabbyPete<pete.do...@gmail.com> 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: > > <h2>My Calendar</h2> > <div class="calendar"> > {{ my_calendar_data|safe }} > </div> > > 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.