Created
December 20, 2010 22:55
-
-
Save Dykam/749167 to your computer and use it in GitHub Desktop.
Html templates, my way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Template</title> | |
</head> | |
<body> | |
<div class="Content"> | |
<h1>Post Title</h1> | |
<p class="Item"></p> | |
<p class="Author"></p> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "The Template Engine" | |
".Content": [ | |
{ | |
"h1": "First entry" | |
".Item": "This is the content of the first entry.", | |
".Author": "Dykam", | |
}, | |
{ | |
"h1": "Second entry" | |
".Item": [ | |
"This is the content of the second entry.", | |
"With multiple paragraphs!" | |
], | |
".Author": "Dykam", | |
} | |
], | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>The Template Engine</title> | |
</head> | |
<body> | |
<div class="Content"> | |
<h1>First entry</h1> | |
<p class="Item">This is the content of the first entry.</p> | |
<p class="Author">Dykam</p> | |
</div> | |
<div class="Content"> | |
<h1>Second entry</h1> | |
<p class="Item">This is the content of the second entry.</p> | |
<p class="Item">With multiple paragraphs!</p> | |
<p class="Author">Dykam</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment