Created
April 19, 2010 22:46
-
-
Save addywaddy/371756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fab = require( "fab" ); | |
module.exports = fab | |
( /^\/(css|scripts|pics)\/.+$/ ) | |
(fab.nodejs.fs, "public/css/master.css") |
cheers for the feedback, jed. fab is a beautiful framework - looking forward to seeing where it goes!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
static resources would ideally be served by your web server, but if you'd like to use (fab), it's probably easiest to capture resource type like you're doing now, and use it to compose the local file path
where myFunction is a unary app that constructs the file path you want based on the incoming path, and sends it back as a string. we'll definitely be building a built-in app that makes this easier, so stay tuned.