While we are using Assetic with Twig templating, we want to delay the actual processing until the last moment for various reasons. So instead of using the javascripts, css tags of assetic we created something like this

```
{{ add_asset (['public/js/prototype-handler.js', 'public/js/shipping-method.js'], 'js') }}

```

Anyhow, the idea is that at the end of the response event we will process and inject all assets to the content. However, right now I'm stuck at how to add these assets to assetic so they can be processed and returned with the result file(s).

I have checked some other bundles and what they are doing right now is to render the assets via twig like this:

[AssetManagementBundle](https://github.com/smoya/AssetManagementBundle/blob/master/Templating/Helper/AssetManagementHelper.php)

However, it doesn't seem to be an optimal approach to this. I wonder if there is a better way or not?