Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Prettify example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Dec 7, 2013
1 parent fd257a1 commit bed852e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/faq.md
Expand Up @@ -99,6 +99,8 @@ You need to install brunch plugins. It can be done simply by executing `npm inst
This simple function will load all your files that are ending with `-test` suffix (`user-view-test.coffee` etc).

```javascript
window.require.list().filter(function(name) {return /-test$.test(name)/;}).forEach(require);
window.require.list()
.filter(function(name) {return /-test$.test(name)/;})
.forEach(require);
```

0 comments on commit bed852e

Please sign in to comment.