mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
cleanly format html output
This commit is contained in:
4
app.js
4
app.js
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
})();
|
||||
|
||||
'''
|
||||
Reference in New Issue
Block a user