You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+27-27
Original file line number
Diff line number
Diff line change
@@ -479,7 +479,7 @@ Set Delimiter tags start with an equals sign and change the tag delimiters from
479
479
480
480
Consider the following contrived example:
481
481
482
-
```
482
+
```html+erb
483
483
* {{ default_tags }}
484
484
{{=<% %>=}}
485
485
* <% erb_style_tags %>
@@ -515,30 +515,30 @@ mustache.js may be built specifically for several different client libraries, in
515
515
-[qooxdoo](http://qooxdoo.org/)
516
516
517
517
These may be built using [Rake](http://rake.rubyforge.org/) and one of the following commands:
518
-
519
-
$ rake jquery
520
-
$ rake mootools
521
-
$ rake dojo
522
-
$ rake yui3
523
-
$ rake qooxdoo
524
-
518
+
```bash
519
+
$ rake jquery
520
+
$ rake mootools
521
+
$ rake dojo
522
+
$ rake yui3
523
+
$ rake qooxdoo
524
+
```
525
525
## Testing
526
526
527
527
In order to run the tests you'll need to install [node](http://nodejs.org/).
528
528
529
529
You also need to install the sub module containing [Mustache specifications](http://github.com/mustache/spec) in the project root.
530
-
531
-
$ git submodule init
532
-
$ git submodule update
533
-
530
+
```bash
531
+
$ git submodule init
532
+
$ git submodule update
533
+
```
534
534
Install dependencies.
535
-
536
-
$ npm install
537
-
535
+
```bash
536
+
$ npm install
537
+
```
538
538
Then run the tests.
539
-
540
-
$ npm test
541
-
539
+
```bash
540
+
$ npm test
541
+
```
542
542
The test suite consists of both unit and integration tests. If a template isn't rendering correctly for you, you can make a test for it by doing the following:
543
543
544
544
1. Create a template file named `mytest.mustache` in the `test/_files`
@@ -550,25 +550,25 @@ The test suite consists of both unit and integration tests. If a template isn't
550
550
directory.
551
551
552
552
Then, you can run the test with:
553
-
554
-
$ TEST=mytest npm run test-render
555
-
553
+
```bash
554
+
$ TEST=mytest npm run test-render
555
+
```
556
556
### Browser tests
557
557
558
558
Browser tests are not included in `npm test` as they run for too long, although they are ran automatically on Travis when merged into master. Run browser tests locally in any browser:
559
-
560
-
$ npm run test-browser-local
561
-
559
+
```bash
560
+
$ npm run test-browser-local
561
+
```
562
562
then point your browser to `http://localhost:8080/__zuul`
563
563
564
564
### Troubleshooting
565
565
566
566
#### npm install fails
567
567
568
568
Ensure to have a recent version of npm installed. While developing this project requires npm with support for `^` version ranges.
569
-
570
-
$ npm install -g npm
571
-
569
+
```bash
570
+
$ npm install -g npm
571
+
```
572
572
## Thanks
573
573
574
574
mustache.js wouldn't kick ass if it weren't for these fine souls:
0 commit comments