diff --git a/generators/app/templates/LICENSE b/generators/app/templates/LICENSE index 8f7d2885..1da7c79f 100644 --- a/generators/app/templates/LICENSE +++ b/generators/app/templates/LICENSE @@ -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. \ No newline at end of file +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/generators/app/templates/README.md b/generators/app/templates/README.md index 8d52e76f..d0f59ab1 100644 --- a/generators/app/templates/README.md +++ b/generators/app/templates/README.md @@ -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. \ No newline at end of file +You can also use `grunt watch` to continuously update when file changes are detected. diff --git a/generators/app/templates/config.rb b/generators/app/templates/config.rb index a0994ecf..65f7b96b 100644 --- a/generators/app/templates/config.rb +++ b/generators/app/templates/config.rb @@ -3,4 +3,4 @@ sass_dir = "src/sass"; images_dir = "dist/src/style/images"; sprite_load_path = "src/style/images"; -relative_assets = true; \ No newline at end of file +relative_assets = true; diff --git a/generators/app/templates/demo/i18n/en_GB.json b/generators/app/templates/demo/i18n/en_GB.json index 134d7c7f..0e8c314a 100644 --- a/generators/app/templates/demo/i18n/en_GB.json +++ b/generators/app/templates/demo/i18n/en_GB.json @@ -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": { @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/generators/app/templates/demo/i18n/nl_NL.json b/generators/app/templates/demo/i18n/nl_NL.json index 7bcc5a46..065bfc62 100644 --- a/generators/app/templates/demo/i18n/nl_NL.json +++ b/generators/app/templates/demo/i18n/nl_NL.json @@ -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": { @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/generators/app/templates/demo/index.html b/generators/app/templates/demo/index.html index 2e622cfa..96c80296 100644 --- a/generators/app/templates/demo/index.html +++ b/generators/app/templates/demo/index.html @@ -1,24 +1,24 @@ - - <%= _.slugify(packageName) %> - - - - + + <%= _.slugify(packageName) %> + - - - - - - - -
- -
- - - \ No newline at end of file + + + + + + + + + + +
+ +
+ + + diff --git a/generators/app/templates/demo/sass/_index.sass b/generators/app/templates/demo/sass/_index.sass index c27a7c44..8e7f0c14 100644 --- a/generators/app/templates/demo/sass/_index.sass +++ b/generators/app/templates/demo/sass/_index.sass @@ -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 \ No newline at end of file + h3 + color: #cdbfe3 diff --git a/generators/app/templates/demo/views/buildscript.hbs b/generators/app/templates/demo/views/buildscript.hbs index 03c1caa1..6b2bfaf6 100644 --- a/generators/app/templates/demo/views/buildscript.hbs +++ b/generators/app/templates/demo/views/buildscript.hbs @@ -1,40 +1,40 @@
- -

BAT uses Grunt to build your application. The build file comes with two default build tasks:

+ +

BAT uses Grunt to build your application. The build file comes with two default build tasks:

- -

This task will create an build ready for deployment to an (production) environment. It will run the following tasks:

- + +

This task will create an build ready for deployment to an (production) environment. It will run the following tasks:

+ - -

This task will create an build ready for deployment to an (production) environment. It will run the following tasks:

- + +

This task will create an build ready for deployment to an (production) environment. It will run the following tasks:

+ -
\ No newline at end of file + diff --git a/generators/app/templates/demo/views/documentation.hbs b/generators/app/templates/demo/views/documentation.hbs index 8220ca01..47c7b323 100644 --- a/generators/app/templates/demo/views/documentation.hbs +++ b/generators/app/templates/demo/views/documentation.hbs @@ -1,28 +1,28 @@
- -
-
-

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.

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!

+ +
+
+

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.

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!

- -

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.

-

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.

+ +

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.

+

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.

- -

Running this from your dist folder after using the generator? See the documentation of this demo project

- Documentation + +

Running this from your dist folder after using the generator? See the documentation of this demo project

+ Documentation -
-
- - Documenting.... - -
-
-
\ No newline at end of file +
+
+ + Documenting.... + +
+
+ diff --git a/generators/app/templates/demo/views/i18n.hbs b/generators/app/templates/demo/views/i18n.hbs index 77e9bcbf..fc4c4dd3 100644 --- a/generators/app/templates/demo/views/i18n.hbs +++ b/generators/app/templates/demo/views/i18n.hbs @@ -1,44 +1,44 @@ -
- -

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.

-

Want to know how madlib-locale achieves this, or want to use the module separate from BAT?

- Read more +
+ +

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.

+

Want to know how madlib-locale achieves this, or want to use the module separate from BAT?

+ Read more - -

Try changing the language using the select box below and see how it affects the examples below.

- - - - - - - - - - - - - - - - - - - - - - - - -
{{_translate "i18n-type"}}{{_translate "i18n-value" }}
{{_translate "i18n-text"}}{{_translate "i18n-exampleText"}}
{{_translate "i18n-date"}}{{_date "date" date }}
{{_translate "i18n-number"}}{{_number number}}
{{_translate "i18n-money"}}{{_money "euro" money}}
+ +

Try changing the language using the select box below and see how it affects the examples below.

+ + + + + + + + + + + + + + + + + + + + + + + + +
{{_translate "i18n-type"}}{{_translate "i18n-value" }}
{{_translate "i18n-text"}}{{_translate "i18n-exampleText"}}
{{_translate "i18n-date"}}{{_date "date" date }}
{{_translate "i18n-number"}}{{_number number}}
{{_translate "i18n-money"}}{{_money "euro" money}}
-
\ No newline at end of file +
diff --git a/generators/app/templates/demo/views/index.hbs b/generators/app/templates/demo/views/index.hbs index c1bd32ea..05d5a77b 100644 --- a/generators/app/templates/demo/views/index.hbs +++ b/generators/app/templates/demo/views/index.hbs @@ -1,12 +1,12 @@
-
-

Backbone Application Template

-

"Design is not just what it looks like and feels like. Design is how it works."

-
+
+

Backbone Application Template

+

"Design is not just what it looks like and feels like. Design is how it works."

+
- -

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.

+ +

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.

diff --git a/generators/app/templates/demo/views/navigation.hbs b/generators/app/templates/demo/views/navigation.hbs index 18c423ed..c470fe41 100644 --- a/generators/app/templates/demo/views/navigation.hbs +++ b/generators/app/templates/demo/views/navigation.hbs @@ -1,24 +1,24 @@ \ No newline at end of file + + + + diff --git a/generators/app/templates/jshintrc b/generators/app/templates/jshintrc index fa154f98..f56589a5 100644 --- a/generators/app/templates/jshintrc +++ b/generators/app/templates/jshintrc @@ -24,4 +24,4 @@ , "process": false , "__dirname": false } -} \ No newline at end of file +} diff --git a/generators/app/templates/src/i18n/en_GB.json b/generators/app/templates/src/i18n/en_GB.json index 134d7c7f..0e8c314a 100644 --- a/generators/app/templates/src/i18n/en_GB.json +++ b/generators/app/templates/src/i18n/en_GB.json @@ -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": { @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/generators/app/templates/src/i18n/nl_NL.json b/generators/app/templates/src/i18n/nl_NL.json index 7bcc5a46..065bfc62 100644 --- a/generators/app/templates/src/i18n/nl_NL.json +++ b/generators/app/templates/src/i18n/nl_NL.json @@ -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": { @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/generators/app/templates/src/index.html b/generators/app/templates/src/index.html index 5c44d3c1..25d24dbc 100644 --- a/generators/app/templates/src/index.html +++ b/generators/app/templates/src/index.html @@ -13,4 +13,4 @@
- \ No newline at end of file + diff --git a/generators/app/templates/src/sass/_settings.sass b/generators/app/templates/src/sass/_settings.sass index e0d57b8c..097eb161 100644 --- a/generators/app/templates/src/sass/_settings.sass +++ b/generators/app/templates/src/sass/_settings.sass @@ -19,4 +19,4 @@ // does the heavy lifting for you.... // $sprites-path: "images/sprites/" -$sprites-sprite: sprite-map( "sprites/*.png" ) \ No newline at end of file +$sprites-sprite: sprite-map( "sprites/*.png" ) diff --git a/generators/app/templates/src/sass/_views.sass b/generators/app/templates/src/sass/_views.sass index 655f96b8..3bbcd74c 100644 --- a/generators/app/templates/src/sass/_views.sass +++ b/generators/app/templates/src/sass/_views.sass @@ -1 +1 @@ -@import "views/_index" \ No newline at end of file +@import "views/_index" diff --git a/generators/app/templates/src/sass/app.sass b/generators/app/templates/src/sass/app.sass index 95d90689..e73fef0d 100644 --- a/generators/app/templates/src/sass/app.sass +++ b/generators/app/templates/src/sass/app.sass @@ -8,4 +8,4 @@ // body - background-color: white \ No newline at end of file + background-color: white diff --git a/generators/app/templates/src/views/index.hbs b/generators/app/templates/src/views/index.hbs index d1d0c349..de94aed6 100644 --- a/generators/app/templates/src/views/index.hbs +++ b/generators/app/templates/src/views/index.hbs @@ -1 +1 @@ -You didn't want a demo, so nothing to see here.... \ No newline at end of file +You didn't want a demo, so nothing to see here....