Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Using Local Parameters with Partials
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:
Follow-up To:
Add Cc | Add Follow-up 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 that you hear
 
picardo  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 03:18
From: picardo <spockspla...@gmail.com>
Date: Sat, 31 Oct 2009 20:18:15 -0700 (PDT)
Local: Sun 1 Nov 2009 03:18
Subject: Using Local Parameters with Partials
So the parameters are not appearing for me in the partial templates. I
am not sure why though. What appears instead for a set parameter is a
boolean value, i.e. true. That probably means that this vaiable is
set, but why are they not appearing then?

I am invoking them this way embeddind them this way

!locals[!title]

And in the page template, they care called thusly:

=partial("modules/pageTitle", {:locals => { :title => 'My Title' }})

Any ideas, clues, hints?

thanks,
Volkan


    Reply    Reply to author    Forward  
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.
Stephen Bartholomew  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 08:42
From: Stephen Bartholomew <st...@curve21.com>
Date: Sun, 1 Nov 2009 01:42:46 -0700 (PDT)
Local: Sun 1 Nov 2009 08:42
Subject: Re: Using Local Parameters with Partials
The !locals syntax looks more like sass variables - perhaps you're
getting them mixed up.  Each key/value pair in the :locals hash is set
up as a local variable in the partial.

Instead of:

!locals[!title]

Try:

= title

In your modules/pageTitle partial.

Steve

On 1 Nov, 03:18, picardo <spockspla...@gmail.com> wrote:


    Reply    Reply to author    Forward  
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.
picardo  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 14:36
From: picardo <spockspla...@gmail.com>
Date: Sun, 1 Nov 2009 06:36:19 -0800 (PST)
Local: Sun 1 Nov 2009 14:36
Subject: Re: Using Local Parameters with Partials
Perfect! Thanks!

On 1 Nov, 03:42, Stephen Bartholomew <st...@curve21.com> wrote:


    Reply    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google