Skip to content

Commit 3a97339

Browse files
committed
Merge pull request #546 from pra85/patch-2
Cosmetic changes to Readme
2 parents e1997ee + 6e42494 commit 3a97339

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

+27-27
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ Set Delimiter tags start with an equals sign and change the tag delimiters from
479479

480480
Consider the following contrived example:
481481

482-
```
482+
```html+erb
483483
* {{ default_tags }}
484484
{{=<% %>=}}
485485
* <% erb_style_tags %>
@@ -515,30 +515,30 @@ mustache.js may be built specifically for several different client libraries, in
515515
- [qooxdoo](http://qooxdoo.org/)
516516

517517
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+
```
525525
## Testing
526526

527527
In order to run the tests you'll need to install [node](http://nodejs.org/).
528528

529529
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+
```
534534
Install dependencies.
535-
536-
$ npm install
537-
535+
```bash
536+
$ npm install
537+
```
538538
Then run the tests.
539-
540-
$ npm test
541-
539+
```bash
540+
$ npm test
541+
```
542542
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:
543543

544544
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
550550
directory.
551551

552552
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+
```
556556
### Browser tests
557557

558558
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+
```
562562
then point your browser to `http://localhost:8080/__zuul`
563563

564564
### Troubleshooting
565565

566566
#### npm install fails
567567

568568
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+
```
572572
## Thanks
573573

574574
mustache.js wouldn't kick ass if it weren't for these fine souls:

0 commit comments

Comments
 (0)