Skip to content

Require.JS support #177

Rush opened this Issue Jun 6, 2013 · 3 comments

2 participants

Rush commented Jun 6, 2013

Would be nice to be able to use Blade templates like this:

require(['blade!templates/mytemplate', function(tpl) {
   $(body).html(tpl({somedata: 'foo'}));

This should request GET /templates/mytemplate.blade in the debug build and in an optimized built a pre-compiled templated should be already present and loaded. See require-jade project that does that for jade.

bminer commented Jun 10, 2013

I've never used Require.JS. What, specifically, would need to be changed in Blade to make this work?

Rush commented Jun 10, 2013
bminer commented Jun 21, 2013

@RushPL - fair enough. If you feel motivation in the future, just hit me up. I can answer any questions you might have about Blade.

Closing this issue for now...

@bminer bminer closed this Jun 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.