Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Components on Multiple Pages
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pirh  
View profile  
 More options Aug 20 2011, 9:45 pm
From: Pirh <pirh.bad...@gmail.com>
Date: Sat, 20 Aug 2011 18:45:34 -0700 (PDT)
Local: Sat, Aug 20 2011 9:45 pm
Subject: Components on Multiple Pages

Hi.

In my app, I have a few components that appear on multiple pages, for
example, the header. At the moment I'm using Django's include tags and
storing the header data in its own HTML file. The problem with this is when
the components require input data. All that input data needs delivered in
the single template.render function.

With multiple components per page, it means all my Handler objects have to
scramble to build a dictionary with all necessary variables for all
components.

This to me seems like evidence of doing it wrong. Any advice on how to
accomplish this in slightly tidier fashion?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ikai Lan (Google)  
View profile  
 More options Aug 23 2011, 4:49 pm
From: "Ikai Lan (Google)" <ika...@google.com>
Date: Tue, 23 Aug 2011 13:49:02 -0700
Local: Tues, Aug 23 2011 4:49 pm
Subject: Re: [appengine-python] Components on Multiple Pages

I'm confused what you mean by this:

" The problem with this is when the components require input data. All that
input data needs delivered in the single template.render function."

Can you post code examples?

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
andreas schmid  
View profile  
 More options Aug 23 2011, 5:11 pm
From: andreas schmid <a.schmi...@gmail.com>
Date: Tue, 23 Aug 2011 23:11:51 +0200
Local: Tues, Aug 23 2011 5:11 pm
Subject: Re: [appengine-python] Components on Multiple Pages

i think what he wants is a custom template tag (https://docs.djangoproject.com/en/1.3/howto/custom-template-tags) which render a template snippet without the need of additional template variables passed in from the handlers side.
also like modules in tornado.

On Aug 23, 2011, at 10:49 PM, Ikai Lan (Google) wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »