Forum: Radiant CMS Using HAML in templates?

37bf689f37c69732158e782020db84f9?d=identicon&s=25 Jordon Bedwell (envygeeks)
on 2010-11-06 01:23
(Received via mailing list)
I noticed that Radiant has HAML but are we able to use them in templates
by default? I've tried something like:

%p hello world this is a demo

%figure <
    %img{:src => 'image.jpg', :alt => 'Hello', :height='340'} <
        %figcaption <
            %span <
                Caption here

But it does not parse.  I might be going crazy and not doing it right?
E5bc1b4a909154f30b831df4d6663641?d=identicon&s=25 banane (Guest)
on 2010-11-06 01:50
(Received via mailing list)
did you install the plugin?
check out the tutorial here: http://haml-lang.com/tutorial.html
09477c358c5897d44121a248326e16d7?d=identicon&s=25 Jim Gay (Guest)
on 2010-11-06 03:26
(Received via mailing list)
On Fri, Nov 5, 2010 at 8:22 PM, Jordon Bedwell <jordon@envygeeks.com>
wrote:
>
> But it does not parse. I might be going crazy and not doing it right?

What do you mean by "templates"?
Rails views in your extensions? Yes.
Radiant layouts? No. But you can add this
http://ext.radiantcms.org/extensions/145-haml-filter
This topic is locked and can not be replied to.