<commit_before>
<script type='text/stache' id='demo-html'>
<pre>url={{ routeUrl(undefined,true) }}</pre>

<a	{{^ routeCurrent(page='home') }}
		href="{{ routeUrl(page='home') }}"
	{{/routeCurrent}}
	>home</a>

<a  {{^routeCurrent page='restaurants'}}
		href="{{routeUrl(page='restaurants')}}"
	{{/routeCurrent}}
	>restaurants</a>

{{#eq(page, 'home')}}
	<h1>Home page</h1>
{{else}}
	<h1>Restaurants page</h1>
{{/eq}}
</script>

<script src="../../node_modules/steal/steal.js" main="@empty" id='demo-source'>
var stache = require("can-stache");
var DefineMap = require("can-define/map/map");

require("can-stache/helpers/route");

var route = require("can-route");

route('{page}',{page: 'home'});
route.ready();

var template = stache(document.getElementById('demo-html').innerHTML);

document.body.appendChild( template(route) );
</script><commit_msg>Fix the #routeUrl demo<commit_after>
<script type='text/stache' id='demo-html'>
<pre>url={{ routeUrl(undefined,true) }}</pre>

<a	{{^ routeCurrent(page='home') }}
		href="{{ routeUrl(page='home') }}"
	{{/routeCurrent}}
	>home</a>

<a  {{^routeCurrent page='restaurants'}}
		href="{{routeUrl(page='restaurants')}}"
	{{/routeCurrent}}
	>restaurants</a>

{{#eq(page, 'home')}}
	<h1>Home page</h1>
{{else}}
	<h1>Restaurants page</h1>
{{/eq}}
</script>

<script src="../../node_modules/steal/steal.js" main="@empty" id='demo-source'>
var stache = require("can-stache");
var DefineMap = require("can-define/map/map");

require("can-stache/helpers/route");

var route = require("can-route");

route('{page}',{page: 'home'});
route.ready();

var template = stache(document.getElementById('demo-html').innerHTML);

document.body.appendChild( template(route.data) );
</script>
{'fraction_non_alphanumeric': 0.2467986030267753, 'fraction_numerical': 0.004656577415599534, 'mean_word_length': 6.377682403433476, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3198569', 'n_tokens_mistral': 641, 'n_tokens_neox': 640, 'n_words': 104}