!!!
html
	head
		meta(http-equiv="Content-Type", content="text/html; charset=utf-8")
		link(rel="stylesheet", href="/css/bootstrap.css", type="text/css")
		link(rel="stylesheet", href="/css/client.css", type="text/css")
		title Activity Streams
	body!=body
		script(src="/js/jquery.min.js", type="text/javascript")
		script(src="/js/underscore-min.js", type="text/javascript")
		script(src="/js/helper.js", type="text/javascript")
		script(type="text/javascript")
			var App = {
				helper : new AppHelper()
			}
		script(src="/static/js/#{assetsCacheHashes.js||0}/client.js", type="text/javascript")
		script(src="https://maps.googleapis.com/maps/api/js?sensor=true")

!!!
html
	head
		meta(http-equiv="Content-Type", content="text/html; charset=utf-8")
		link(rel="stylesheet", href="/css/bootstrap.css", type="text/css")
		link(rel="stylesheet", href="/css/client.css", type="text/css")
		title Activity Streams
	body!=body
		script(src="/js/jquery.min.js", type="text/javascript")
		script(src="/js/underscore-min.js", type="text/javascript")
		script(src="/js/helper.js", type="text/javascript")
		script(type="text/javascript")
			var App = {
				helper : new AppHelper()
			};
		- if (locals.currentUser && locals.filters)
			script(type="text/javascript")
				App.desiredStream = "#{locals.desiredStream}";
				App.currentUser = !{JSON.stringify(locals.currentUser)};
				App.filters = !{JSON.stringify(locals.filters)};
				App.included = !{JSON.stringify(locals.included)};
		script(src="/static/js/#{assetsCacheHashes.js||0}/client.js", type="text/javascript")
		script(src="https://maps.googleapis.com/maps/api/js?sensor=true")

Set the state via JSON
Set the state via JSON
