daviddripps / dripps-express-mvc

yet another approach to MVC in Express/Connect
3 stars 1 forks source link

Custom extension as an option #3

Closed Marcohj closed 12 years ago

Marcohj commented 12 years ago

Since im using Coffee-Script i would be really nice to optionally set that as an parameter.

Or just use the native extension (so it figures it out by itself).

Great package! Coming from PHP myself, and espcially like the PHP MVC's structure.

daviddripps commented 12 years ago

Great idea. Thanks.

Forgot to add the Issue # in the commit, but I added this feature in my latest commit. See the Usage section of the README for info on how to add the "coffee" extension.

Added to NPM as version 0.4.1

Marcohj commented 12 years ago

Great work. Tested it out, and works flawless!

Coming from CodeIgniter one of the really great things i liked is how it detects AJAX request, and handles them different (i.e. not sending the master "layout" and header with it for example).

Do you think such a solution should be coming from the template parser or route/controller handler?