On Wed, Jul 14, 2010 at 12:01 AM, John Simons <[email protected]> wrote: > Planning to add a few enhancements to CombineJSViewComponent based on > http://weblogs.asp.net/rashid/archive/2009/11/09/web-asset-enhancements-in-telerik-extensions-for-asp-net-mvc.aspx
This might be a good time to start merging the functionality of CombineJSViewComponent and the JavascriptComponent in CastleContrib. The JavascriptComponent uses a xml file to define js dependancies somewhat like described that blog post. Presently you can write (if you have a jslibraries.xml file customized as I do) in a view template: #component(Javascript with "std=tabs,autocomplete,combobox,notify,button,dialog,grid") And have inserted at a designated spot in the layout <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script> <script type="text/javascript" src="/javascript/jquery/jquery.bgiframe.min.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.core.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.widget.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.tabs.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.position.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.autocomplete.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.button.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.combobox.js"></script> <script type="text/javascript" src="/javascript/jquery/jquery.jnotify.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.mouse.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.draggable.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.resizable.js"></script> <script type="text/javascript" src="/javascript/jquery/ui/jquery.ui.dialog.js"></script> <script type="text/javascript" src="/javascript/jquery/jqGrid/js/i18n/grid.locale-en.js"></script> <script type="text/javascript" src="/javascript/jquery/jqGrid/js/jquery.jqGrid.min.js"></script> Moving from that to building a compressed file shouldn't be hard. Truth, James -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.
