Skip to content

Instantly share code, notes, and snippets.

@tatey
Created December 13, 2013 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatey/7937953 to your computer and use it in GitHub Desktop.
Save tatey/7937953 to your computer and use it in GitHub Desktop.
Possible solution to bundling templates with AngularJS and Middleman.
%script{type: 'text/x-template', id: 'template-dates-new'}
= partial 'templates/dates/new'
app.config ['$routeProvider', ($routeProvider) ->
$routeProvider
.when '/dates/new',
template: '#template-dates-new'
controller: 'datesController'
controllerAs: 'dates'
resolve:
resolvedPlanManager: 'planResolver'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment