Skip to content

Commit

Permalink
fix(app generator): fix i18n support
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed Mar 18, 2015
1 parent bc0f187 commit f6498f2
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions generators/app/templates/src/_router.coffee
Original file line number Diff line number Diff line change
@@ -3,17 +3,28 @@
module.exports = factory(
require( 'backbone' )
require( 'jquery' )
require( 'madlib-console' )
require( 'madlib-console' )<% if ( i18n ) { %>
require( 'madlib-locale' )<% } %>

require( './views/index.coffee' )
)
else if typeof define is 'function' and define.amd
define( [
'backbone'
'jquery'
'madlib-console'
'madlib-console'<% if ( i18n ) { %>
'madlib-locale'<% } %>

'./views/index.coffee'
], factory )
)( ( Backbone, $, console, Views... ) ->
)((
Backbone
$
console<% if ( i18n ) { %>
localeManager<% } %>

Views...
) ->

class AppRouter extends Backbone.Router

0 comments on commit f6498f2

Please sign in to comment.