Google Groups Home
Help | Sign in
Message from discussion locals and partials
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
liku  
View profile
 More options 21 Jun, 13:43
From: liku <lfan...@gmail.com>
Date: Sat, 21 Jun 2008 05:43:17 -0700 (PDT)
Local: Sat 21 Jun 2008 13:43
Subject: locals and partials
hi there,
I'm trying to get partials with locals working. but somehow I am too
stupid to implement it...
i followed the exact instructions on the staticmatic-website:

this in my current file:
= partial('mypartial', :locals => { :title => 'My Title' })

than this under partials/mypartial.haml:
%h1 title

=> this always prints out "title" (and not "My Title")

i even tried:

%h1= title or %h1= @title, which seems to make more sense to me, but
still no luck.

haml (2.0.0)
staticmatic (0.9.4)

any pointers???

thanks a bunch!


    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.

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