ASP.NET MVC Client-side Resource Combine
ASP.NET MVC Client-side Resource Combine is another spin-off library from one of my current development projects. (The other is ASP.NET MVC Validation Library.) While the name is “resource combine”, this library actually does more than just combining client side resources including JavaScript and CSS. It allows you to organize resources into groups which will be combined, minified, compressed, and cached (at both client and server sides) together. While the library comes bundled with some routing and link utility to help developers easily integrate it into their ASP.NET MVC applications, there’s no reason why the library cannot be used with ASP.NET WebForms applications.
Refer to the project CodePlex page for detailed usage and binary/code download. The library uses the great YUI Compressor library for the minification part.
Hopes it helps!
This is sakthi from macroteseting http://www.macrotesting.com I found this article really useful for me.
I really have to Thank you for this post. The main key points are so clear and good to understand the topic. Thank you again
cheers
sakthi
I love this library. Thanks.
I have some idea:
+ Can we use URL rewriting to map resource file to our combining codes.
+ I want to apply this library to my user control library.
There is a problem when package resource files into library.
I found in commercial library, they use
or something like this.
I don’t like this way, may we apply this library for this case?
So that, I can change the version of javascript files without changing code of built library.
Cheers,
HuyHM
@HuyHM: maybe your comment misses some code block?
Strange!!!
I post that code line again:
@script lang=”javascript” src=”loadlibrary.aspx?lib=prototype.js&version=1″ />
(replace @ by <).
Thanks
@HuyHM: sorry, it’s still not clear to me what’s you’re looking for. However, I suppose it’s possible to build a routing mechanism around the core engine to solve all kinds of routing needs. The current routing is ASP.MVC-based, if it doesn’t work for you, might be you just need to roll out a thin routing wrapper…