Dear Bruno

Great to hear that there are other ZOPE users among us.

When I work with ZOPE I code with dtml. I only found out about ZPT
when I quiz ZOPE and never got familiar with it afterwords. The first
thing they teach you when working with ZOPE is to combine segment of
web pages with <dtml-var "aSegment.html">. With this I could type use
some page with other tags or javascript/css and it will all render
normally.

I was kind of disappointed that I didn't find any thing similar here
and page inheritance is still new to me to adopt so I didn't consider
it first.

I want to create a application that uses minimal html files. At the
present stage of development, coded everything into one html and save
all the static data into the database.

I want to know about re-rendering a django tag/javascript/css is
because I want to allow my users to use a web interface to type in
their contents and custom tag that I created and save it back to the
database.

If everything work accordingly, the custom tag will activate and put
javascript/googleMap api onto the page and display a google map. But
sadly it didn't gone according to plan and instead the page only
displayed the tag as if it was just text.

So.. does anyone have any idea how I could solve this problem?

Allen



> > I use to use ZOPE for a couple of years and it has to abilities to
> > integrate multiple static webpages just by write a tag with the static
> > webpage filename similar to the filter tag.
>
> ZPT or dtml ? I've done my share of Zope / ZPT (and still do when
> someone points a gun at me), and from memory I don't see what you're
> talking about...
>
> > But I just started django
> > a month ago and I didn't see function of this sort except for page
> > inheritance.
>
> Well, there's an include tag, but if that's not what you're after, you
> can write your own cutom tag.
>
> > I have consider using page inheritance but I just not use to it.
>
> You should, definitly. Page inheritance work mostly like the "page
> macro" pattern in ZPT - except it's way cleaner.
>
> > That's why I place it in the database. This is just my temporary fix
> > for the time being and I know eventually I find a problem with this
> > way soon of later.
>
> Well, putting template code in the DB is not necessarily totally dumb
> - but you need to explicitely render it, which is not supported OOTB,
> so you either have to do it in the view or write some custom tag /
> filters to take care of the rendering.
>
> You'll find relevant doc here:
>
> http://docs.djangoproject.com/en/dev/ref/templates/api/#ref-templates...http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#howt...

--

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.


Reply via email to