Google Groups Home
Help | Sign in
Message from discussion ( resubmit w/fix ) How do I vary certain contents?
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
Ryan Mulligan  
View profile
 More options 9 Jul, 18:33
From: "Ryan Mulligan" <r...@ryantm.com>
Date: Wed, 9 Jul 2008 12:33:55 -0500
Local: Wed 9 Jul 2008 18:33
Subject: Re: ( resubmit w/fix ) How do I vary certain contents?

I would just do...

-if type == "category1"
  =render :partial => "catagory1"
-elsif type == "category2"
  =render :partial => "catagory2"

On Wed, Jul 9, 2008 at 11:05 AM, Pauli <pauli.pr...@gmail.com> wrote:

> How do I vary certain contents based on a page property?  I'm thinking
> this ( momentarily without ability to lookup partial syntax,
> "dayjob").

> some-page.haml

> - type = "category1"

> layout.haml

> = if ( type == "category1") partial-for-category1

> Pauli

> PS. would have replied to previous, but can't see it -- not sure if it
> made it through.


    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