-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(app generator templates): correct whitespace errors
- Loading branch information
Showing
20 changed files
with
202 additions
and
202 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title><%= _.slugify(packageName) %></title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | ||
|
||
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css"> | ||
<head> | ||
<title><%= _.slugify(packageName) %></title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | ||
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | ||
|
||
<link href="style/app.css" type="text/css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<div id="navigation"> | ||
<!-- navigation view will be loaded here --> | ||
</div> | ||
<div id="main-content"> | ||
<!-- main views will be loaded here --> | ||
</div> | ||
<script src="bundle.min.js"></script> | ||
</body> | ||
</html> | ||
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css"> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | ||
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | ||
|
||
<link href="style/app.css" type="text/css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<div id="navigation"> | ||
<!-- navigation view will be loaded here --> | ||
</div> | ||
<div id="main-content"> | ||
<!-- main views will be loaded here --> | ||
</div> | ||
<script src="bundle.min.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.etalage | ||
color: white | ||
padding-top: 45px | ||
padding-bottom: 45px | ||
.etalage | ||
color: white | ||
padding-top: 45px | ||
padding-bottom: 45px | ||
|
||
h3 | ||
color: #cdbfe3 | ||
h3 | ||
color: #cdbfe3 |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
<div class="container"> | ||
<div class="page-header"> | ||
<h1>Building your application</h1> | ||
</div> | ||
<p>BAT uses Grunt to build your application. The build file comes with two default build tasks:</p> | ||
<div class="page-header"> | ||
<h1>Building your application</h1> | ||
</div> | ||
<p>BAT uses Grunt to build your application. The build file comes with two default build tasks:</p> | ||
|
||
<div class="page-header"> | ||
<h3>Default</h3> | ||
<code>grunt</code> | ||
</div> | ||
<p>This task will create an build ready for deployment to an (production) environment. It will run the following tasks:</p> | ||
<ul> | ||
<li>Clean: remove old files in the dist folder</li> | ||
<li>Browserify: compile CoffeeScript and create bundle file</li> | ||
<li>Uglify: minify and uglify the bundle file</li> | ||
<li>Compass: compile the sass templates</li> | ||
<li>YuiDoc: generate the documentation</li> | ||
<li>Copy: copy all the needed files to dist folder</li> | ||
<li>String-replace: add cache buster to bundle script tag in index.html</li> | ||
<li>writeBuildFile: generate a build number file</li> | ||
<li>Compress: create a zip containing the docs and src folder in dist</li> | ||
</ul> | ||
<div class="page-header"> | ||
<h3>Default</h3> | ||
<code>grunt</code> | ||
</div> | ||
<p>This task will create an build ready for deployment to an (production) environment. It will run the following tasks:</p> | ||
<ul> | ||
<li>Clean: remove old files in the dist folder</li> | ||
<li>Browserify: compile CoffeeScript and create bundle file</li> | ||
<li>Uglify: minify and uglify the bundle file</li> | ||
<li>Compass: compile the sass templates</li> | ||
<li>YuiDoc: generate the documentation</li> | ||
<li>Copy: copy all the needed files to dist folder</li> | ||
<li>String-replace: add cache buster to bundle script tag in index.html</li> | ||
<li>writeBuildFile: generate a build number file</li> | ||
<li>Compress: create a zip containing the docs and src folder in dist</li> | ||
</ul> | ||
|
||
|
||
<div class="page-header"> | ||
<h3>Debug</h3> | ||
<code>grunt debug</code> | ||
</div> | ||
<p>This task will create an build ready for deployment to an (production) environment. It will run the following tasks:</p> | ||
<ul> | ||
<li>Clean: remove old files in the dist folder</li> | ||
<li>Browserify: compile CoffeeScript and create bundle file including sourcemap</li> | ||
<li>Compass: compile the sass templates</li> | ||
<li>Copy: copy all the needed files to dist folder</li> | ||
<li>String-replace: add cache buster to bundle script tag in index.html</li> | ||
<li>writeBuildFile: generate a build number file</li> | ||
<li>Compress: create a zip containing the src folder in dist</li> | ||
</ul> | ||
<div class="page-header"> | ||
<h3>Debug</h3> | ||
<code>grunt debug</code> | ||
</div> | ||
<p>This task will create an build ready for deployment to an (production) environment. It will run the following tasks:</p> | ||
<ul> | ||
<li>Clean: remove old files in the dist folder</li> | ||
<li>Browserify: compile CoffeeScript and create bundle file including sourcemap</li> | ||
<li>Compass: compile the sass templates</li> | ||
<li>Copy: copy all the needed files to dist folder</li> | ||
<li>String-replace: add cache buster to bundle script tag in index.html</li> | ||
<li>writeBuildFile: generate a build number file</li> | ||
<li>Compress: create a zip containing the src folder in dist</li> | ||
</ul> | ||
|
||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<div class="container"> | ||
<div class="page-header"> | ||
<h1>Code documentation</h1> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<p>A developers favorite activity, documenting your code. Ask any developer and they will tell you they hate to do it, but most of them will agree with you that it's important. BAT comes with a Grunt file setup to use YuiDOC so if you document your code nicely it will result in a nice documentation website in the docs folder when doing a dist build. </p><p>To help you as a developer, when using the sub-generators to create views, models and collections a part of the documentation will be prefilled for you! Just add documentation for your function and your good to go!</p> | ||
<div class="page-header"> | ||
<h1>Code documentation</h1> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<p>A developers favorite activity, documenting your code. Ask any developer and they will tell you they hate to do it, but most of them will agree with you that it's important. BAT comes with a Grunt file setup to use YuiDOC so if you document your code nicely it will result in a nice documentation website in the docs folder when doing a dist build. </p><p>To help you as a developer, when using the sub-generators to create views, models and collections a part of the documentation will be prefilled for you! Just add documentation for your function and your good to go!</p> | ||
|
||
<div class="page-header"> | ||
<h3>Custom YuiDOC</h3> | ||
</div> | ||
<p>BAT uses a slighty adjusted version of YuiDOC. The standard version of YuiDOC has support for both CoffeeScript and JavaScript but not for both mixed in one project. Since YuiDOC is stable enough and it does what it needs to do, we decided to branch it and create a version which does support a mix and match of CoffeeScript and JavaScript in one project. We did a pull request on the original repo but sadly enough they haven't done anything with it yet as of this point.</p> | ||
<p>Since we are using a custom version, we also branched grunt-contrib-yuidoc since the dependency on YuiDOC is handled there to make sure it uses our custom version. And now we are using our own version anyway to decided to make it more awesome as well, we added an extra key for YuiDOC: "@moduletype". This way using our own theme for YuiDOC we can put our views, models and collections under seperate tabs.</p> | ||
<div class="page-header"> | ||
<h3>Custom YuiDOC</h3> | ||
</div> | ||
<p>BAT uses a slighty adjusted version of YuiDOC. The standard version of YuiDOC has support for both CoffeeScript and JavaScript but not for both mixed in one project. Since YuiDOC is stable enough and it does what it needs to do, we decided to branch it and create a version which does support a mix and match of CoffeeScript and JavaScript in one project. We did a pull request on the original repo but sadly enough they haven't done anything with it yet as of this point.</p> | ||
<p>Since we are using a custom version, we also branched grunt-contrib-yuidoc since the dependency on YuiDOC is handled there to make sure it uses our custom version. And now we are using our own version anyway to decided to make it more awesome as well, we added an extra key for YuiDOC: "@moduletype". This way using our own theme for YuiDOC we can put our views, models and collections under seperate tabs.</p> | ||
|
||
<div class="page-header"> | ||
<h3>See it in action</h3> | ||
</div> | ||
<p>Running this from your dist folder after using the generator? See the documentation of this demo project</p> | ||
<a href="../docs" class="btn btn-primary" role="button" target="_blank">Documentation</a> | ||
<div class="page-header"> | ||
<h3>See it in action</h3> | ||
</div> | ||
<p>Running this from your dist folder after using the generator? See the documentation of this demo project</p> | ||
<a href="../docs" class="btn btn-primary" role="button" target="_blank">Documentation</a> | ||
|
||
</div> | ||
<div class="col-md-5"> | ||
<a href="http://geek-and-poke.com/" target="_blank"> | ||
<img src="style/images/documenting.jpg" class="img-responsive" alt="Documenting...." /> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-5"> | ||
<a href="http://geek-and-poke.com/" target="_blank"> | ||
<img src="style/images/documenting.jpg" class="img-responsive" alt="Documenting...." /> | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,44 +1,44 @@ | ||
<div class="container"> | ||
<div class="page-header"> | ||
<h1>Multilanguage</h1> | ||
</div> | ||
<p>BAT makes use of the madlib-locale module to support multiple languages in the same webapplication. No need for multiple | ||
templates containing different languages. It can not only replace text but also format dates, numbers and money.</p> | ||
<p>Want to know how madlib-locale achieves this, or want to use the module separate from BAT?</p> | ||
<a href="https://github.com/marviq/madlib-locale" class="btn btn-primary" role="button" target="_blank">Read more</a> | ||
<div class="container"> | ||
<div class="page-header"> | ||
<h1>Multilanguage</h1> | ||
</div> | ||
<p>BAT makes use of the madlib-locale module to support multiple languages in the same webapplication. No need for multiple | ||
templates containing different languages. It can not only replace text but also format dates, numbers and money.</p> | ||
<p>Want to know how madlib-locale achieves this, or want to use the module separate from BAT?</p> | ||
<a href="https://github.com/marviq/madlib-locale" class="btn btn-primary" role="button" target="_blank">Read more</a> | ||
|
||
<div class="page-header"> | ||
<h3>See it in action</h3> | ||
</div> | ||
<p>Try changing the language using the select box below and see how it affects the examples below.</p> | ||
<select name="language" class="form-control"> | ||
<option value="nl_NL">NL</option> | ||
<option value="en_GB">EN</option> | ||
</select> | ||
<table class="table"> | ||
<thead> | ||
<th>{{_translate "i18n-type"}}</th> | ||
<th>{{_translate "i18n-value" }}</th> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{_translate "i18n-text"}}</td> | ||
<td>{{_translate "i18n-exampleText"}}</td> | ||
</tr> | ||
<tr> | ||
<td>{{_translate "i18n-date"}}</td> | ||
<td>{{_date "date" date }}</td> | ||
</tr> | ||
<tr> | ||
<td>{{_translate "i18n-number"}}</td> | ||
<td>{{_number number}}</td> | ||
</tr> | ||
<tr> | ||
<td>{{_translate "i18n-money"}}</td> | ||
<td>{{_money "euro" money}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="page-header"> | ||
<h3>See it in action</h3> | ||
</div> | ||
<p>Try changing the language using the select box below and see how it affects the examples below.</p> | ||
<select name="language" class="form-control"> | ||
<option value="nl_NL">NL</option> | ||
<option value="en_GB">EN</option> | ||
</select> | ||
<table class="table"> | ||
<thead> | ||
<th>{{_translate "i18n-type"}}</th> | ||
<th>{{_translate "i18n-value" }}</th> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{_translate "i18n-text"}}</td> | ||
<td>{{_translate "i18n-exampleText"}}</td> | ||
</tr> | ||
<tr> | ||
<td>{{_translate "i18n-date"}}</td> | ||
<td>{{_date "date" date }}</td> | ||
</tr> | ||
<tr> | ||
<td>{{_translate "i18n-number"}}</td> | ||
<td>{{_number number}}</td> | ||
</tr> | ||
<tr> | ||
<td>{{_translate "i18n-money"}}</td> | ||
<td>{{_money "euro" money}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<div class="container-fluid etalage" style="background-image: linear-gradient(to bottom,#563d7c 0,#6f5499 100%) ;"> | ||
<div class="container"> | ||
<h1>Backbone Application Template</h1> | ||
<h3>"Design is not just what it looks like and feels like. Design is how it works."</h3> | ||
</div> | ||
<div class="container"> | ||
<h1>Backbone Application Template</h1> | ||
<h3>"Design is not just what it looks like and feels like. Design is how it works."</h3> | ||
</div> | ||
</div> | ||
<div id="introduction" class="container"> | ||
<div class="page-header"> | ||
<h1>Introduction</h1> | ||
</div> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla urna sapien, varius eu sodales a, aliquet nec orci. Nam tincidunt justo ac arcu dictum, a feugiat ligula volutpat. Cras malesuada magna id enim molestie ultricies. Vivamus nec feugiat orci, aliquam egestas libero. Praesent vel massa eu ligula lobortis dignissim et quis dolor. Etiam a lorem vel nisl pellentesque porttitor non sit amet augue. Aliquam at pharetra sem. Maecenas blandit sit amet ipsum at rhoncus. Fusce et turpis posuere sem fermentum laoreet. Donec ut tellus cursus, eleifend nunc eget, ornare eros. Curabitur eu cursus metus. Vivamus ut dolor id tortor blandit aliquam. Sed eget tristique sapien, vel tristique massa. Proin a magna at ante lacinia tristique.</p> | ||
<div class="page-header"> | ||
<h1>Introduction</h1> | ||
</div> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla urna sapien, varius eu sodales a, aliquet nec orci. Nam tincidunt justo ac arcu dictum, a feugiat ligula volutpat. Cras malesuada magna id enim molestie ultricies. Vivamus nec feugiat orci, aliquam egestas libero. Praesent vel massa eu ligula lobortis dignissim et quis dolor. Etiam a lorem vel nisl pellentesque porttitor non sit amet augue. Aliquam at pharetra sem. Maecenas blandit sit amet ipsum at rhoncus. Fusce et turpis posuere sem fermentum laoreet. Donec ut tellus cursus, eleifend nunc eget, ornare eros. Curabitur eu cursus metus. Vivamus ut dolor id tortor blandit aliquam. Sed eget tristique sapien, vel tristique massa. Proin a magna at ante lacinia tristique.</p> | ||
</div> |
Oops, something went wrong.