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

Allow -t flag to include config.ru and Gemfile #111

Closed agarzola closed 10 years ago

agarzola commented 10 years ago

I’ve been using serve to prototype everything lately, so I created a prototype boilerplate of sorts which uses Slim by default, tells Tilt to use Maruku for markdown, includes Breakpoint and might eventually include other tools I tend to use a lot. However, when I use serve create new-project -t my-own-boilerplate to create a new project based off of my boilerplate, the config.ru and Gemfile documents from the boilerplate are ignored.

Perhaps other documents are also ignored, but those two are the ones I’ve messed with and find myself having to edit each time I create a new project this way.

Is there any way to tell serve to use all the documents of a project as a template, and not just the views, stylesheets, images, etc.?

Thanks!

jlong commented 10 years ago

Not at the moment. Templates weren't really designed to include those files, but I can see why you might want that.

Of course you could just...

cp -R my-own-boilerplate new-project
agarzola commented 10 years ago

Of course. But that would also bring in my .git directory, right? Which I could just rm -r .git, but I’m trying to do things with one command. I’ll just copy the project with cp as you suggested and remove the repository manually.

I appreciate the prompt response!