Add ES2015 runtime transpilation sample

This commit is contained in:
SteveSandersonMS
2015-11-02 11:15:34 -08:00
parent f693bd60e3
commit 60d77e7b92
19 changed files with 233 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
Hello
@section scripts {
<script src="lib/system.js"></script>
<script>System.import('js/main.js');</script>
}

View File

@@ -0,0 +1,6 @@
@{
ViewData["Title"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>

View File

@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>ES2015 Example</title>
</head>
<body>
@RenderBody()
@RenderSection("scripts", required: false)
</body>
</html>

View File

@@ -0,0 +1,2 @@
@using ES2015Example
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"

View File

@@ -0,0 +1,3 @@
@{
Layout = "_Layout";
}