Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alcalyn/js-vars

Simple class to pass variables to javascript. Also pass translations and route urls using Symfony.
https://github.com/alcalyn/js-vars

Last synced: 4 days ago
JSON representation

Simple class to pass variables to javascript. Also pass translations and route urls using Symfony.

Awesome Lists containing this project

README

        

JsVars
======

Simple class to pass variables to javascript.

## Installation

Using composer:

``` json{
{
"require": {
"alcalyn/js-vars": "dev-master"
}
}
```

## Usage

This class can be used as service (on Symfony or Silex)
to easily pass variables to Javascript
from controllers, or from another services.

Coupled to symfony/translation or symfony/routing, you can pass translations or urls.

See [Integration to Symfony2](doc/integ_symfony2.md),
or [Integration to Silex](doc/integ_silex.md).

## License

This bundle is under the MIT license. See the complete license:

[License](LICENSE)