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

ability to setup project starting with haml, and a skel template #59

Closed jess closed 12 years ago

jess commented 12 years ago

Here's a good start...we just need to work in the error notifications if they don't have proper gems installed.

ntalbott commented 12 years ago

Seems like an OK idea in general, but I'm not real keen on automatic conversion from erb->haml; I think I'd prefer to just see seperate starter templates for haml. Think you can try taking that path?

jlong commented 12 years ago

Hey @ntalbott this was the path @jess and I had discussed offline. Why aren't you keen on automatic conversion?

ntalbott commented 12 years ago

In general I just don't trust auto-converters; hand-crafted almost always comes out better IMO. Plus, it's not an approach that (as far as I know) would work for other template types, so haml would end up being a one-off instead of setting the stage for a bunch of different possible defaults.

jess commented 12 years ago

HI Guys,

This was the issue I had. (This was back in November, so it may have changed??)

Check out this video first: http://screencast.com/t/u4pTs7oL

Then see this issues with converting html5 to haml...looks like there's an open issue. Link 1

Link 2

ntalbott commented 12 years ago

Yah, that issue :smile:

So I'd recommend that each skeleton type have its own set of templates if we're going to do custom skeleton types.

jlong commented 12 years ago

Would be nice if templates could declare dependancies on other templates. So we could have one template declare the skeletal CSS and another inset the view templates.

I'm fine with whatever solution you guys want to pull together here.

ntalbott commented 12 years ago

I personally don't care enough about this to implement it, but will gladly review patches that make it happen. Going to close this PR out, though, since I think we agree it isn't the right approach.