sourcec0de / nemesis

Full Stack Javascript Web Framework with opinions
MIT License
0 stars 0 forks source link

asset-rack #5

Open sourcec0de opened 10 years ago

sourcec0de commented 10 years ago

use asset-rack module for serving and compiling client side assets.

consider for pre-compiling jade

I am working on a pull-request to add middleware to secure assets. This way you can pre-compile your admin templates and secure them by ensuring a user has permissions to view that template.

sourcec0de commented 10 years ago

all assets like

should be pre-compiled on the fly when #4 occurs.

no user intervention should be required, this ensures developer productivity.

sourcec0de commented 10 years ago

asset-rack is helpful because it allows you to deploy your static files to the cloud.

aws s3

the url of a file is cdn.domain.com/fileName-md5Contents.css this ensures you have the latest version of each file when rendering your views, and offloads to a cdn.