TheMangoFactory / bakehouse

Streamlines web pre-processors for Spring resources
http://themangofactory.github.com/bakehouse
21 stars 4 forks source link

Add support for CDN networks in `resource` tag #1

Closed martypitt closed 11 years ago

martypitt commented 11 years ago

Resource tags should support an optional cdn tag. For example:

<bakehouse:resource src='/libs/angularjs-1.0.3' 

cdn='http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js' />

The builder should allow for specifying the use of CDN's

BakehouseBuilder.serveCdnResources();

Note - this should only work for resources that are not wrapped in a <bakehouse:resources /> tag.