-
Notifications
You must be signed in to change notification settings - Fork 0
Home
slulego edited this page Dec 21, 2020
·
9 revisions
Torx is a JavaScript template engine for Node inspired by Razor syntax.
@{
var title = 'Produce'
var list = ['Apple', 'Blueberry', 'Carrot']
var orange = '#FFA500'
}
<head>
<style>
#title {
color: @orange;
}
</style>
</head>
<body>
<h1 id="title">@title</h1>
<ul>
@for(item of list) {
<li>@item</li>
}
</ul>
</body>