Plugin for XAP (Silverlight) Assets

21 views
Skip to first unread message

Rich Quackenbush

unread,
May 6, 2013, 11:14:52 AM5/6/13
to cass...@googlegroups.com
I would like to create a plug in for cassette that renders <object> tags for Silverlight XAP files.  I've been looking at the source code, but have a few questions.

It seems like I would need to create a new type of Bundle, but I can't inherit from Cassette.Bundle because it has abstract members that are marked 'Internal'.  Am I approaching this correctly?

BTW - the reason I want to leverage Cassette is as follows:
  • I'm already using Cassette to bundle my css and js resources.
  • I want to re-use the caching header code / cassette.axd handler / file hash code that's already in place.
Or is this outside of what Cassette was intended for and I should just roll my own solution?

For reference, here is an example of the HTML that I would like to render:

<object width="300" height="300"
    data="data:application/x-silverlight-2," 
    type="application/x-silverlight-2" >
    <param name="source" value="SilverlightApplication1.xap"/>
</object>

Andrew Davey

unread,
May 7, 2013, 5:22:05 AM5/7/13
to Cassette
I didn't consider this use case when creating Insight. Whilst it sounds feasible, there are a bunch of places in the code that assume either JS or CSS based things. This isn't always for great reasons, it was just simpler at the time.

Unless there are other people also wanting silverlight support in Cassette, I'd say for now, roll your own solution. Grab any useful bits of code from Cassette where it makes sense.

I'm collecting a list of things which are hard or impossible in Cassette right now, in preparation for v3. Additional bundle types are now on that list :)



--
You received this message because you are subscribed to the Google Groups "Cassette" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cassette+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rich Quackenbush

unread,
May 7, 2013, 12:05:54 PM5/7/13
to cass...@googlegroups.com
Good deal - thanks for your response.  I scoped out the code for Cassette - it looks good.  We'll leverage some of that in the meantime.

Thanks,
Rich
Reply all
Reply to author
Forward
0 new messages