symfony/AsseticBundle — Issue #34: [1.2] Support functions and / or variables to the input files
Author: Abhoryo
Created: 2011-10-13 11:48:21+00:00
State: open

Support functions and / or variables to the input files.

Some examples:

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

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

{% endjavascripts %}
```

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

{% javascripts
'@AcmeDemoBundle/Resources/public/js/*'
foo
output='js/mapage.js' %}

{% endjavascripts %}
```

```
// 3

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

{% endjavascripts %}
```

```
// 4

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

{% endjavascripts %}
```

```
// 5

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

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

{% endjavascripts %}
```