Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug initializer #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/0.8/Options.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ractive.myMethod(); // triggers the alert
| [csp](#csp) | [parsing](#parsing) | output CSP compatible (inline functions for expressions) templates |
| [css](#css) | [templating](#templating) | component only css to include on render |
| [data](#data) | [data](#data-binding) | the data to bind to the template |
| [debug](#debug) | [configuration](#configuration) | debug information output to the console |
| [decorators](#decorators) | [templating](#templating) | decorators to include for use by the template |
| [delimiters](#delimiters) | [parsing](#parsing) | delimiters to use when parsing the template |
| [easing](#easing) | [transitions](#transitions-animations) | easing functions to use in transitions |
Expand Down Expand Up @@ -67,6 +68,15 @@ ractive.myMethod(); // triggers the alert



## Configuration

> <a id="debug"></a>
> ### debug *`Boolean`*
> Defaults to `true`. This setting outputs debugging information to the console, applied globally. Set before the first Ractive instance is created. Throwing the following in your code will automagically set debug to `false` for minified files.
> ```js
> Ractive.DEBUG = /unminified/.test(function(){/*unminified*/});
> ```

## Templating

> <a id="template"></a>
Expand Down