Do I always have to install haml seperately as a plugin for my RoR
project, or can I use the installed haml gem within my RoR project as
transparently as otherwise (perhaps a config here or there)? (For
example, imagine having to upgrade haml in 10 different locations...)

regards,

-- Irfy

2007/4/11, Nathan Weizenbaum <[EMAIL PROTECTED]>:
> The executable is also installed with the plugin, located in
> vendor/plugins/haml/bin/haml. And it can take input and output filenames,
> like so:
>
>   haml foo.haml foo.html
>
> It's also easy to work Haml into a Ruby script. If you have the gem
> installed, require 'rubygems' and 'haml' and then use:
>
>   Haml::Engine.new(haml_text).render
>
> or
>
> Sass::Engine.new(sass_text).render
>
> Hope that helps!
> - Nathan
>
>
> On 4/10/07, Matt Lyon <[EMAIL PROTECTED]> wrote:
> >
> > with the haml gem installed, you should have a 'haml' script as well;
> > mine is in /usr/local/bin. It's as easy as `cat foo.haml | haml >
> > foo.html`
> >
> > On 4/10/07, Evgeny <[EMAIL PROTECTED]> wrote:
> > > Greetings All,
> > >
> > > I like Haml and Sass so much - that I want to use it everywhere.
> > >
> > > And by everywhere what I mean is that I want to use it to generate
> static
> > > pages. I have projects that don't require any dynamic behind-the-scenes
> > > processing, so I really don't need rails for just creating a single "
> > > index.html" page.
> > >
> > > Could I use haml/sass code to create a small ruby script that will
> render a
> > > directory full of HAML and SASS files into HTML and CSS?
> > > Or is haml/sass too coupled into ruby for it to work?
> > >
> > > Regards,
> > >
> > >
> > > - evgeny
> > >
> > >  >
> > >
> >
> >
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to