cleanly format html output

This commit is contained in:
2012-02-24 19:01:14 +00:00
parent 7d504bd777
commit 29a053cca9
3 changed files with 15 additions and 3 deletions

4
app.js
View File

@@ -29,7 +29,9 @@
});
app.get('/', function(req, res) {
return res.render('index');
return res.render('index', {
format: true
});
});
app.listen(process.env.PORT || 3000);

View File

@@ -23,7 +23,7 @@ app.configure 'production', ->
# Routes
app.get '/', (req, res) ->
res.render 'index'
res.render 'index', format: true
# Set port and start server.

View File

@@ -1,3 +1,13 @@
script '''
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-354018-12']); _gaq.push(['_trackPageview']); (function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-354018-12']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
'''