Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
how to insert HAML via function into template?
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
 
Ming  
View profile  
 More options Nov 5, 12:32 am
From: Ming <min...@gmail.com>
Date: Wed, 4 Nov 2009 21:32:11 -0800 (PST)
Local: Thurs, Nov 5 2009 12:32 am
Subject: how to insert HAML via function into template?
I'm using HAML in a merb project.

I have function generated HTML that I wish to convert to HAML and
insert into a HAML template.

convert(html) returns haml

All the naive methods I've tried at best insert the converted haml as
a string into the rendered html rather than including it as code for
the template.  How do I get the function inserted haml to be treated
as code?

Alternatively, I would be happy to insert the function generated HTML
into the final rendered page without going through HAML.  Is this
possible?

TIA


    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.
Nathan Weizenbaum  
View profile  
 More options Nov 5, 2:26 am
From: Nathan Weizenbaum <nex...@gmail.com>
Date: Thu, 5 Nov 2009 00:26:49 -0700
Local: Thurs, Nov 5 2009 2:26 am
Subject: Re: [haml] how to insert HAML via function into template?

Why can't you just use "= html" in your template?


    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.
Ming  
View profile  
 More options Nov 5, 7:18 am
From: Ming <min...@gmail.com>
Date: Thu, 5 Nov 2009 04:18:39 -0800 (PST)
Local: Thurs, Nov 5 2009 7:18 am
Subject: Re: how to insert HAML via function into template?
Nathan, big duh!  I tried everything but the obvious.  Thanks.

On Nov 5, 2:26 am, Nathan Weizenbaum <nex...@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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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