-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates for example-050 - page of pages.
Updating the `include` helper to pass in `opts.data` instead of `opts` so it better reflects what the context would be for the template. Updating the `example-050` folder with an example of creating the page of pages.
- Loading branch information
Showing
35 changed files
with
1,772 additions
and
344 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
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
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,129 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<title>alert-default | Bootstrap Components</title> | ||
|
||
<!-- Core CSS --> | ||
<link href="../assets/css/blog.css" rel="stylesheet"> | ||
<link href="../assets/css/docs.css" rel="stylesheet"> | ||
|
||
<!-- Documentation extras --> | ||
<link href="../assets/css/github.css" rel="stylesheet"> | ||
|
||
<!--[if lt IE 9]><script src="docs-assets/js/ie8-responsive-file-warning.js"></script> | ||
<![endif]--> | ||
|
||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | ||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> | ||
<![endif]--> | ||
|
||
<!-- Google web fonts --> | ||
|
||
<!-- Favicons --> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png.html"> | ||
<link rel="shortcut icon" href="../assets/ico/favicon.png.html"> | ||
<script> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', '']); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); | ||
ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(ga, s); | ||
})(); | ||
</script> | ||
</head> | ||
<body> | ||
<a class="sr-only" href="#content">Skip navigation</a> | ||
|
||
<!-- Navbar --> | ||
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a href="../index.html" class="navbar-brand">Bootstrap Components</a> | ||
</div> | ||
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li> <a href="../about.html">About</a> </li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
|
||
<!-- Content --> | ||
<div class="container"> | ||
|
||
<!-- Pager --> | ||
<ul class="pager "> | ||
<li class="previous"> | ||
<a href="alert-01.html">← Previous</a> | ||
</li> | ||
<li class="next"> | ||
<a href="alert-02.html">Next →</a> | ||
</li> | ||
</ul> | ||
|
||
<!-- Header --> | ||
<div class="bs-docs-section"> | ||
<div class="page-header"> | ||
<h1 id="alert-01">alert-default</h1> | ||
</div> | ||
</div> | ||
|
||
<!-- Component --> | ||
<div class="bs-example"> | ||
<div class="alert "> | ||
<strong>Foo</strong> Not much going on here. You successfully read | ||
<a href="http://github.com/assemble/assemble/" class="alert-link">this important alert message</a>. | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- JS and analytics only. --> | ||
|
||
<!-- Bootstrap core JavaScript | ||
================================================== --> | ||
|
||
<!-- Placed at the end of the document so the pages load faster --> | ||
<script src="../assets/js/jquery.js"></script> | ||
<script src="../assets/js/bootstrap.js"></script> | ||
<script src="http://platform.twitter.com/widgets.js"></script> | ||
<script src="../assets/js/holder.js"></script> | ||
<script src="../assets/js/highlight.js"></script> | ||
<script> | ||
hljs.initHighlightingOnLoad(); | ||
</script> | ||
<script src="../assets/js/application.js"></script> | ||
|
||
<!-- Analytics | ||
================================================== --> | ||
<script> | ||
var _gauges = _gauges || []; | ||
(function() { | ||
var t = document.createElement('script'); | ||
t.async = true; | ||
t.id = 'gauges-tracker'; | ||
t.setAttribute('data-site-id', ''); | ||
t.src = '//secure.gaug.es/track.js'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(t, s); | ||
})(); | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<title>alert-warning | Bootstrap Components</title> | ||
|
||
<!-- Core CSS --> | ||
<link href="../assets/css/blog.css" rel="stylesheet"> | ||
<link href="../assets/css/docs.css" rel="stylesheet"> | ||
|
||
<!-- Documentation extras --> | ||
<link href="../assets/css/github.css" rel="stylesheet"> | ||
|
||
<!--[if lt IE 9]><script src="docs-assets/js/ie8-responsive-file-warning.js"></script> | ||
<![endif]--> | ||
|
||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | ||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> | ||
<![endif]--> | ||
|
||
<!-- Google web fonts --> | ||
|
||
<!-- Favicons --> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png.html"> | ||
<link rel="shortcut icon" href="../assets/ico/favicon.png.html"> | ||
<script> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', '']); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); | ||
ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(ga, s); | ||
})(); | ||
</script> | ||
</head> | ||
<body> | ||
<a class="sr-only" href="#content">Skip navigation</a> | ||
|
||
<!-- Navbar --> | ||
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a href="../index.html" class="navbar-brand">Bootstrap Components</a> | ||
</div> | ||
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li> <a href="../about.html">About</a> </li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
|
||
<!-- Content --> | ||
<div class="container"> | ||
|
||
<!-- Pager --> | ||
<ul class="pager "> | ||
<li class="previous"> | ||
<a href="alert-01.html">← Previous</a> | ||
</li> | ||
<li class="next"> | ||
<a href="alert-03.html">Next →</a> | ||
</li> | ||
</ul> | ||
|
||
<!-- Header --> | ||
<div class="bs-docs-section"> | ||
<div class="page-header"> | ||
<h1 id="alert-02">alert-warning</h1> | ||
</div> | ||
</div> | ||
|
||
<!-- Component --> | ||
<div class="bs-example"> | ||
<div class="alert alert-warning"> | ||
<strong>Warning!</strong> Best check yo self, you're not looking too good. Best check yo self, you're | ||
<a href="http://github.com/assemble/assemble/" class="alert-link">not looking too good</a>. | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- JS and analytics only. --> | ||
|
||
<!-- Bootstrap core JavaScript | ||
================================================== --> | ||
|
||
<!-- Placed at the end of the document so the pages load faster --> | ||
<script src="../assets/js/jquery.js"></script> | ||
<script src="../assets/js/bootstrap.js"></script> | ||
<script src="http://platform.twitter.com/widgets.js"></script> | ||
<script src="../assets/js/holder.js"></script> | ||
<script src="../assets/js/highlight.js"></script> | ||
<script> | ||
hljs.initHighlightingOnLoad(); | ||
</script> | ||
<script src="../assets/js/application.js"></script> | ||
|
||
<!-- Analytics | ||
================================================== --> | ||
<script> | ||
var _gauges = _gauges || []; | ||
(function() { | ||
var t = document.createElement('script'); | ||
t.async = true; | ||
t.id = 'gauges-tracker'; | ||
t.setAttribute('data-site-id', ''); | ||
t.src = '//secure.gaug.es/track.js'; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(t, s); | ||
})(); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.
59a08b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, but the main hurdles as I see it are:
59a08b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@doowb I don't know what I was thinking last night. I forgot how/why I made the
{{include}}
helper, it should be able to do most of what I was suggesting in (1).However, their are still context issues. Consider that a target could be created to aggregate some information from the index pages of all of the other targets. If each target has locally-defined data and uses lodash templates, which are processed and expanded when the task is run - based on that local data - then the "aggregation" target won't have access to the local data used for context in each target...
I know there are ways to define each target to get around this, but explaining and documenting that might be a bigger challenge than coming up with another solution.