Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rhtml is depricated in Rails 3 #53

Open
drkhdr opened this issue Aug 19, 2010 · 1 comment
Open

rhtml is depricated in Rails 3 #53

drkhdr opened this issue Aug 19, 2010 · 1 comment

Comments

@drkhdr
Copy link

drkhdr commented Aug 19, 2010

rhtml should be renamed to erb

@ixti
Copy link

ixti commented Aug 8, 2011

Toto has nothing to do with Rails. If you want to have .erb extensions you can achieve this goal easily, simply provide following option in your toto settings under config.ru:

# ...
  set :to_html, lambda {|path, page, ctx|
    ERB.new(File.read("#{path}/#{page}.erb")).result(ctx)
  }
#...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants