Grouping v:asset
  • Would like to able to assign a group attribute to tags, then have the respective concatenated files output at a place of my choosing:

    <v:asset src="/javascripts/some.crap.js" group="my_group" />
    <v:asset src="/javascripts/some.other.crap.js" group="my_group" />
    <v:asset:output group="my_group" />
    <!-- outputs: <script src="blahblahblah.js" type="text/javascript"></script>-->

    <!-- a cabillion lines later -->
    <v:asset src="/javascripts/some.crap.iwanthere.js" group="my_other_group" />
    <v:asset src="/javascripts/some..other.crap.iwanthere.js" group="my_other_group" />
    <v:asset:output group="my_group" />
    <!-- outputs: <script src="yeahyeahyeah.js" type="text/javascript"></script> -->

    Is this something that could be possible in the future?

  • 3 Answers sorted by
  • BUMP!

  • Hey -- this is something I can try to look at soon.

  • This has been rolled out. There's no need for a separate output tag. The final tag in each group will be the location of the output. Let me know if you see any issues with it.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion