symfony/symfony-docs — Issue #768: [1.2] Support functions and / or variables to the input files
Author: Abhoryo
Created: 2011-10-13 09:49:14+00:00
State: open

Support functions and / or variables to the input files.

Some example

```
// 1
{% set foo = '@AcmeStoreBundle/Resources/public/js/*' %}

{% javascripts
input={foo}
output='js/mapage.js' %}

{% endjavascripts %}
```

```
// 2
{% set foo = '@AcmeStoreBundle/Resources/public/js/*' %}

{% javascripts

input={foo}
output='js/mapage.js' %}

{% endjavascripts %}
```

```
{% javascripts
input=my_function_that_resturns_a_script_path()
output='js/mapage.js' %}

{% endjavascripts %}
```

```
{% javascripts
input={'@AcmeStoreBundle/Resources/public/js/*', '@AcmeDemoBundle/Resources/public/js/*'}
output='js/mapage.js' %}

{% endjavascripts %}
```