Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: data-files (yaml + json) can be used
- Loading branch information
1 parent
7e26392
commit 8beec7a
Showing
14 changed files
with
221 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Families | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
<ul> | ||
{{#_data.families}} | ||
<li>{{surname}} | ||
<ul> | ||
{{#members}} | ||
<li>{{given}}</li> | ||
{{/members}} | ||
</ul> | ||
</li> | ||
{{/_data.families}} | ||
</ul> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title: X-Men | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
<ul> | ||
{{#_data.xmen}} | ||
<li>{{.}}</li> | ||
{{/_data.xmen}} | ||
</ul> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"surname": "Jones", | ||
"members": [ | ||
{"given": "Jim"}, | ||
{"given": "John"}, | ||
{"given": "Jill"} | ||
] | ||
}, | ||
{ | ||
"surname": "Smith", | ||
"members": [ | ||
{"given": "Steve"}, | ||
{"given": "Sally"} | ||
] | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- Professor X | ||
- Beast | ||
- Colossus | ||
- Cyclops | ||
- Iceman | ||
- Marvel Girl | ||
- Storm |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | ||
for details. All rights reserved. Use of this source code is governed by a | ||
BSD-style license that can be found in the LICENSE file. | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Families | HudriWudri</title> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="/styles/main.css"> | ||
</head> | ||
<body> | ||
<div class="menu"> | ||
<a href="/index.html">Home</a> | | ||
<a href="/markdown.html">Markdown</a> | | ||
<a href="/xtreme.html">XTreme simple</a> | | ||
<a href="/about/index.html">About</a> | ||
</div> | ||
<!-- 'title' defaults to markdown filename if not defined in the file's YAML block --> | ||
<h2>Families</h2> | ||
<!-- '_content' contains the contents of the markdown file (minus the yaml variables in the header) --> | ||
<ul> | ||
<li>Jones | ||
<ul> | ||
<li>Jim</li> | ||
<li>John</li> | ||
<li>Jill</li> | ||
</ul> | ||
</li> | ||
<li>Smith | ||
<ul> | ||
<li>Steve</li> | ||
<li>Sally</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<footer> | ||
<!-- | ||
'_date' stores the markdown page's last modified date. The date formatting can be set in 'site.yaml' via the | ||
'date_format' variable. | ||
--> | ||
<span>Last modified: 14.04.2015</span> | ||
<!-- Values set in 'site.yaml' can be accessed as properties in the '_site' variable --> | ||
by <span>Mike Mitterer</span> | ||
Template: /Volumes/Daten/DevLocal/DevDart/SiteGen/example/simple/html/_templates/default.html | ||
</footer> | ||
<script type="application/dart" src="/main.dart"></script> | ||
<script src="packages/browser/dart.js"></script> | ||
</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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | ||
for details. All rights reserved. Use of this source code is governed by a | ||
BSD-style license that can be found in the LICENSE file. | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>X-Men | HudriWudri</title> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="/styles/main.css"> | ||
</head> | ||
<body> | ||
<div class="menu"> | ||
<a href="/index.html">Home</a> | | ||
<a href="/markdown.html">Markdown</a> | | ||
<a href="/xtreme.html">XTreme simple</a> | | ||
<a href="/about/index.html">About</a> | ||
</div> | ||
<!-- 'title' defaults to markdown filename if not defined in the file's YAML block --> | ||
<h2>X-Men</h2> | ||
<!-- '_content' contains the contents of the markdown file (minus the yaml variables in the header) --> | ||
<ul> | ||
<li>Professor X</li> | ||
<li>Beast</li> | ||
<li>Colossus</li> | ||
<li>Cyclops</li> | ||
<li>Iceman</li> | ||
<li>Marvel Girl</li> | ||
<li>Storm</li> | ||
</ul> | ||
<footer> | ||
<!-- | ||
'_date' stores the markdown page's last modified date. The date formatting can be set in 'site.yaml' via the | ||
'date_format' variable. | ||
--> | ||
<span>Last modified: 14.04.2015</span> | ||
<!-- Values set in 'site.yaml' can be accessed as properties in the '_site' variable --> | ||
by <span>Mike Mitterer</span> | ||
Template: /Volumes/Daten/DevLocal/DevDart/SiteGen/example/simple/html/_templates/default.html | ||
</footer> | ||
<script type="application/dart" src="/main.dart"></script> | ||
<script src="packages/browser/dart.js"></script> | ||
</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
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
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