jlong / serve

Serve is a small Rack-based web server and rapid prototyping framework for Web applications (specifically Rails apps). Serve is meant to be a lightweight version of the Views part of the Rails MVC. This makes Serve an ideal framework for prototyping Rails applications or creating simple websites. Serve has full support for Rails-style partials and layouts.
http://get-serve.com
Other
836 stars 90 forks source link

Locals support #21

Closed heikki closed 13 years ago

heikki commented 13 years ago

I tested only HAML but it should work with others as well because Tilt is now in use.

render "header", :locals => { :foo => "bar" }
render :partial => "header", :locals => { :foo => "bar" }
jlong commented 13 years ago

Can you add a file or two in the "test_project" folder that tests the new syntax?

adamstac commented 13 years ago

I love it. Are just waiting on tests to get this into master?

jlong commented 13 years ago

I've been meaning to pull this in, but haven't gotten to it yet. Feel free to handle it if you have the time. :)

jlong commented 13 years ago

Merged in 50a604a9705951d0915b7575274af333031f601a

heikki commented 13 years ago

Great! Thanks.