{-# LANGUAGE QuasiQuotes, OverloadedStrings #-} module Clckwrks.JS.ClckwrksApp where import Language.Javascript.JMacro clckwrksAppJS :: Bool -> JStat clckwrksAppJS :: Bool -> JStat clckwrksAppJS Bool True = [jmacro| { var clckwrksApp = angular.module('clckwrksApp', [ 'happstackAuthentication', 'usernamePassword', 'openId', 'ngRoute' ]); clckwrksApp.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/resetPassword', { templateUrl: '/authenticate/authentication-methods/password/partial/reset-password-form', controller: 'UsernamePasswordCtrl' }); }]); clckwrksApp.controller('ClckwrksCtrl', ['$scope', '$http',function($scope, $http) { return; }]); } |] clckwrksAppJS Bool False = [jmacro| { var clckwrksApp = angular.module('clckwrksApp', [ 'happstackAuthentication', 'usernamePassword', 'ngRoute' ]); clckwrksApp.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/resetPassword', { templateUrl: '/authenticate/authentication-methods/password/partial/reset-password-form', controller: 'UsernamePasswordCtrl' }); }]); clckwrksApp.controller('ClckwrksCtrl', ['$scope', '$http',function($scope, $http) { return; }]); } |]