Skip to content

Commit

Permalink
style(app generator templates): correct whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed Mar 18, 2015
1 parent 5684c6f commit 4e24911
Show file tree
Hide file tree
Showing 20 changed files with 202 additions and 202 deletions.
2 changes: 1 addition & 1 deletion generators/app/templates/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion generators/app/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ $ npm install <%= _.slugify(packageName) %> --save

## usage
Generate a project and then run grunt to build/update the distribution sources.
You can also use `grunt watch` to continuously update when file changes are detected.
You can also use `grunt watch` to continuously update when file changes are detected.
2 changes: 1 addition & 1 deletion generators/app/templates/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
sass_dir = "src/sass";
images_dir = "dist/src/style/images";
sprite_load_path = "src/style/images";
relative_assets = true;
relative_assets = true;
18 changes: 9 additions & 9 deletions generators/app/templates/demo/i18n/en_GB.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "en_GB"
"name": "en_GB"
, "phrases":
{
"i18n-value": "Value"
, "i18n-type": "Type"
, "i18n-date": "Date"
, "i18n-text": "Text"
, "i18n-exampleText": "This text should be english"
, "i18n-number": "Number"
, "i18n-money": "Money"
"i18n-value": "Value"
, "i18n-type": "Type"
, "i18n-date": "Date"
, "i18n-text": "Text"
, "i18n-exampleText": "This text should be english"
, "i18n-number": "Number"
, "i18n-money": "Money"
}
, "formatting":
{
Expand Down Expand Up @@ -43,4 +43,4 @@
}
}
}
}
}
18 changes: 9 additions & 9 deletions generators/app/templates/demo/i18n/nl_NL.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "nl_NL"
"name": "nl_NL"
, "phrases":
{
"i18n-value": "Waarde"
, "i18n-type": "Type"
, "i18n-date": "Datum"
, "i18n-text": "Tekst"
, "i18n-exampleText": "Deze tekst is in het Nederlands"
, "i18n-number": "Getallen"
, "i18n-money": "Bedragen"
"i18n-value": "Waarde"
, "i18n-type": "Type"
, "i18n-date": "Datum"
, "i18n-text": "Tekst"
, "i18n-exampleText": "Deze tekst is in het Nederlands"
, "i18n-number": "Getallen"
, "i18n-money": "Bedragen"
}
, "formatting":
{
Expand Down Expand Up @@ -38,4 +38,4 @@
}
}
}
}
}
42 changes: 21 additions & 21 deletions generators/app/templates/demo/index.html
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>
12 changes: 6 additions & 6 deletions generators/app/templates/demo/sass/_index.sass
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
70 changes: 35 additions & 35 deletions generators/app/templates/demo/views/buildscript.hbs
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>
48 changes: 24 additions & 24 deletions generators/app/templates/demo/views/documentation.hbs
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>
82 changes: 41 additions & 41 deletions generators/app/templates/demo/views/i18n.hbs
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>
16 changes: 8 additions & 8 deletions generators/app/templates/demo/views/index.hbs
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>
Loading

0 comments on commit 4e24911

Please sign in to comment.