๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
/////////////////////////////////////////////////////////////////////// | |
// These examples apply to Fuel UX v3.0 | |
// If you're looking for Fuel UX v2.* please checkout the examples here | |
// - https://gist.github.com/vernak2539/7589085 | |
///////////////////////////////////////////////////////////////////////// | |
--> | |
<!-- standard markup of datepicker --> | |
<div class="datepicker dropdown" id="myDatepicker"> | |
<div class="input-append"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var conditionalCSRF; // be careful with hoisting | |
var lusca = require( 'lusca' ); | |
var csrf = lusca.csrf(); | |
var csrfFreeRoutes = { | |
'/server-callback': true | |
}; | |
// ....everything else in your server | |
app.configure( function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(express.session()); | |
app.use(express.csrf()); | |
app.get('/', index); | |
index = function(req,res,next){ | |
res.render('index',{token: req.session._csrf}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
/////////////////////////////////////////////////////////////////////// | |
// These examples apply to Fuel UX v2.* | |
// If you're looking for Fuel UX v3 please checkout the examples here | |
// - https://gist.github.com/vernak2539/9980566 | |
///////////////////////////////////////////////////////////////////////// | |
--> | |
<!-- standard markup of datepicker --> | |
<div class="datepicker dropdown" id="myDatepicker"> | |
<div class="input-append"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devel": true, | |
"browser": true | |
"es5": true, | |
"boss": true, | |
"bitwise": true, | |
"curly": true, | |
"debug": false, | |
"eqeqeq": true, | |
"latedef": true, |
NewerOlder