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

Exporting slim templates = HTML files with .slim extension. #89

Closed agarzola closed 11 years ago

agarzola commented 11 years ago

I’ve exported my project to a directory and everything looks just fine, except for the fact that all of my HTML files are saved with the .slim extension. Could I be doing something wrong?

jlong commented 11 years ago

Hrmmm. That should work, but export is a newer feature and may still have some kinks. Just to verify, can you show me an ls of your export directory?

agarzola commented 11 years ago

Here you go…

Tanizaki:html agarzola$ ls
entrar      index.html  stylesheets
images      registro    welcome.slim

Here’s what the registro directory looks like…

Tanizaki:registro agarzola$ ls
completar_registro.slim     determinar_institucion.slim
confirmar_institucion.slim  verificar.slim

Note that index.html is the product of index.redirect, which redirects to welcome.slim.

jlong commented 11 years ago

What happens if you change the extension to ".html.slim" ?

jlong commented 11 years ago

(on your source files)

agarzola commented 11 years ago

That did it! Thank you very much for your help. :)

FYI: I just noticed that the export feature is “compiling” .DS_Store and .htaccess files. Let me know if you’d like me to open a separate ticket for that. There may already be one… I haven’t checked.