[Parsetree] ruby_parser w/ rails?
Sven Fuchs
svenfuchs at artweb-design.de
Wed Feb 6 14:42:07 PST 2008
(not sure whether this is the right place to post this question, but I
haven't found a dedicated ruby_parser list, so please point me
elsewhere if it's not.)
I've started playing with a Haml "safemode" implementation based on
ruby_parser plus ideas from Liquid. I'm curious if this might allow to
use Haml instead of Liquid. So far my I got some tests running and my
impression is that this might be actually feasible.
I can't get ruby_parser working within a Rails 2.0.2 app though. As
soon as I require 'ruby_parser' in an otherwise working application
the server (mongrel) seems to stop responding anything. There's no
error in any log file at all. Safari tells me that it "cannot parse
response" (NSURLErrorDomain:-1017) while Firefox simply doesn't do
anything. wget says "End of file while parsing headers." and retries.
Any hints?
I am aware that ruby_parser isn't supposed to be production ready :)
But it would be great if there would be a simple hack or whatever that
allowed me to toy with this within an acutal Rails application.
[1] experimental implementation as a Rails plugin: <http://svn.artweb-design.de/stuff/rails/haml_safemode/
>
[2] excited gibberish blog post <http://www.artweb-design.de/2008/2/5/sexy-theme-templating-with-haml-safemode-finally
>
--
sven fuchs svenfuchs at artweb-design.de
artweb design http://www.artweb-design.de
grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone)
d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile)
More information about the Parsetree
mailing list