Build express middleware to deliver compiled client-side templates #3

Closed
bminer opened this Issue May 8, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@bminer
Owner

bminer commented May 8, 2012

Build express middleware to deliver compiled client-side templates. For example, you can set a mount point (i.e. "/views") and any GET request to "/views/view123.blade" will cause the Express middleware to compile the blade template and deliver the JavaScript code to the browser. No client-side caching of templates would be required; this would be handled automatically by the server (i.e. using 304 Not Modified weak caching or Expires headers and strong caching).

bminer added a commit that referenced this issue May 9, 2012

Added Blade middleware for client-side templates (solves issue #3)
Updated runtime to work nicely with middleware (solves issue #2)
Remove try, catch block from runtime
Added .gitignore to ignore node_modules
@bminer

This comment has been minimized.

Show comment Hide comment
@bminer

bminer May 9, 2012

Owner

Caching does not work 100% yet, but I'm going to close this issue for now.

Owner

bminer commented May 9, 2012

Caching does not work 100% yet, but I'm going to close this issue for now.

@bminer bminer closed this May 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment