Skip to content

Instantly share code, notes, and snippets.

@BransonGitomeh
Last active September 23, 2016 09:38
Show Gist options
  • Save BransonGitomeh/6de86e646f8eee18e4fe5ba6bb9fa23b to your computer and use it in GitHub Desktop.
Save BransonGitomeh/6de86e646f8eee18e4fe5ba6bb9fa23b to your computer and use it in GitHub Desktop.
var m = require('mithril');
module.exports = {
controller:function (argument) {
console.log("called the controller")
// fetch the db
return {
name:"awesomness"
}
},
view: function(ctrl,args) {
return m("html", [
m("link[href='../../plugins/pace/pace.min.css'][rel='stylesheet']"),
m("script[src='./src/pace.js'][type='text/javascript']"),
m("meta[charset='utf-8']"),
m("meta[content='IE=edge'][http-equiv='X-UA-Compatible']"),
m("title",
"AdminLTE 2 | Starter"
),
m("meta[content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'][name='viewport']"),
m("link[href='bootstrap/css/bootstrap.min.css'][rel='stylesheet']"),
m("link[href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css'][rel='stylesheet']"),
m("link[href='https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css'][rel='stylesheet']"),
m("link[href='dist/css/AdminLTE.min.css'][rel='stylesheet']"),
m("meta[content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'][name='viewport']"),
m("link[href='../../bootstrap/css/bootstrap.min.css'][rel='stylesheet']"),
m("link[href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css'][rel='stylesheet']"),
m("link[href='https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css'][rel='stylesheet']"),
m("link[href='../../plugins/daterangepicker/daterangepicker.css'][rel='stylesheet']"),
m("link[href='../../plugins/datepicker/datepicker3.css'][rel='stylesheet']"),
m("link[href='../../plugins/iCheck/all.css'][rel='stylesheet']"),
m("link[href='../../plugins/colorpicker/bootstrap-colorpicker.min.css'][rel='stylesheet']"),
m("link[href='../../plugins/timepicker/bootstrap-timepicker.min.css'][rel='stylesheet']"),
m("link[href='../../plugins/select2/select2.min.css'][rel='stylesheet']"),
m("link[href='../../dist/css/AdminLTE.min.css'][rel='stylesheet']"),
m("link[href='../../dist/css/skins/_all-skins.min.css'][rel='stylesheet']"),
m("link[href='dist/css/skins/skin-blue.min.css'][rel='stylesheet']"),
m("script[src='mithril.min.js'][type='text/javascript']"),
// the body
m("[id='app']", "args.body" + ctrl.name),
m("script[src='plugins/jQuery/jquery-2.2.3.min.js']"),
m("script[src='bootstrap/js/bootstrap.min.js']"),
m("script[src='../../plugins/select2/select2.full.min.js']"),
m("script[src='../../plugins/input-mask/jquery.inputmask.js']"),
m("script[src='../../plugins/input-mask/jquery.inputmask.date.extensions.js']"),
m("script[src='../../plugins/input-mask/jquery.inputmask.extensions.js']"),
m("script[src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js']"),
m("script[src='../../plugins/daterangepicker/daterangepicker.js']"),
m("script[src='../../plugins/datepicker/bootstrap-datepicker.js']"),
m("script[src='../../plugins/colorpicker/bootstrap-colorpicker.min.js']"),
m("script[src='../../plugins/timepicker/bootstrap-timepicker.min.js']"),
m("script[src='../../plugins/slimScroll/jquery.slimscroll.min.js']"),
m("script[src='../../plugins/iCheck/icheck.min.js']"),
m("script[src='../../plugins/fastclick/fastclick.js']"),
m("script[src='../../plugins/datatables/jquery.dataTables.min.js']"),
m("script[src='../../plugins/datatables/dataTables.bootstrap.min.js']"),
m("script[src='dist/js/app.min.js']"),
m("script[src='./src/sidebarElements.js'][type='text/javascript']"),
m("script[src='./src/formElements.js'][type='text/javascript']"),
m("script[src='./src/formEngine.js'][type='text/javascript']")
])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment