[html/razor/handlebars/xml] colorizer tests
parent
f324e87fc7
commit
e475fdebcc
|
@ -0,0 +1,42 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>VSCode Tests</title>
|
||||
<link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
color: purple;
|
||||
background-color: #d8da3d;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="mocha"></div>
|
||||
|
||||
<!--<script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
|
||||
<script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>-->
|
||||
<script src="/out/vs/loader.js"></script>
|
||||
<script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
|
||||
|
||||
<script>
|
||||
mocha.setup('tdd');
|
||||
|
||||
require.config({
|
||||
baseUrl: '/out',
|
||||
paths: {
|
||||
assert: '/test/assert.js'
|
||||
}
|
||||
});
|
||||
|
||||
require({{ modules }}, function () {
|
||||
mocha.run();
|
||||
});
|
||||
</script>
|
||||
<div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner hidden">
|
||||
<span class=octicon></span>
|
||||
<span class="signed-in-tab-flash">You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>
|
||||
<span class="signed-out-tab-flash">You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
|||
// h1(name=maintainer.name)
|
||||
// | Maintainer:
|
||||
// = ' ' + maintainer.name
|
||||
table
|
||||
tr
|
||||
td(style='width: '+(100/2)+'%').
|
||||
Twitter
|
||||
td= maintainer.twitter
|
||||
tr
|
||||
td(style='width: '+(100/2)+'%').
|
||||
Blog
|
||||
td= maintainer.blog
|
||||
|
||||
- var user = { name: 'John' }
|
||||
if user
|
||||
div.welcomebox
|
||||
// Filtered inline output
|
||||
p.
|
||||
Welcome, #{user.name}
|
||||
else
|
||||
div.loginbox
|
||||
form(name="login", action="/login", method="post")
|
||||
input(type="text", name="user")
|
||||
input(type="password", name="pass")
|
||||
input(type="submit", value="login")
|
||||
|
||||
p #[code samp] — Regular text. #[samp This is sample text] more text.
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,46 @@
|
|||
@{
|
||||
var total = 0;
|
||||
var totalMessage = "";
|
||||
@* a multiline
|
||||
razor comment embedded in csharp *@
|
||||
if (IsPost) {
|
||||
|
||||
// Retrieve the numbers that the user entered.
|
||||
var num1 = Request["text1"];
|
||||
var num2 = Request["text2"];
|
||||
|
||||
// Convert the entered strings into integers numbers and add.
|
||||
total = num1.AsInt() + num2.AsInt();
|
||||
<italic><bold>totalMessage = "Total = " + total;</bold></italic>
|
||||
}
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Add Numbers</title>
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p>Enter two whole numbers and then click <strong>Add</strong>.</p>
|
||||
<form action="" method="post">
|
||||
<p><label for="text1">First Number:</label>
|
||||
<input type="text" name="text1" />
|
||||
</p>
|
||||
<p><label for="text2">Second Number:</label>
|
||||
<input type="text" name="text2" />
|
||||
</p>
|
||||
<p><input type="submit" value="Add" /></p>
|
||||
</form>
|
||||
|
||||
@* now we call the totalMessage method
|
||||
(a multi line razor comment outside code) *@
|
||||
|
||||
<p>@totalMessage</p>
|
||||
|
||||
<p>@(totalMessage+"!")</p>
|
||||
|
||||
An email address (with escaped at character): name@@domain.com
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<div class="entry">
|
||||
<h1>{{title}}</h1>
|
||||
{{#if author}}
|
||||
<h2>{{author.firstName}} {{author.lastName}}</h2>
|
||||
{{else}}
|
||||
<h2>Unknown Author</h2>
|
||||
{{/if}}
|
||||
{{contentBody}}
|
||||
</div>
|
||||
|
||||
{{#unless license}}
|
||||
<h3 class="warning">WARNING: This entry does not have a license!</h3>
|
||||
{{/unless}}
|
||||
|
||||
<div class="footnotes">
|
||||
<ul>
|
||||
{{#each footnotes}}
|
||||
<li>{{this}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h1>Comments</h1>
|
||||
|
||||
<div id="comments">
|
||||
{{#each comments}}
|
||||
<h2><a href="/posts/{{../permalink}}#{{id}}">{{title}}</a></h2>
|
||||
<div>{{body}}</div>
|
||||
{{/each}}
|
||||
</div>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue