TheMangoFactory / bakehouse

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

CSS links are incorrectly generated as src links #20

Open martypitt opened 11 years ago

martypitt commented 11 years ago

If no processor is defined, the following:

 <bakehouse:resources type="text/css" configuration="css">
     <bakehouse:resource src="/resources/css/bootstrap-datepicker.css" />
        <bakehouse:resource src="/resources/css/bootstrap-timepicker.css" />
 </bakehouse:resources>

generated the following:

 <script src="/resources/css/bootstrap-datepicker.css" type="text/css"></script>
 <script src="/resources/css/bootstrap-timepicker.css" type="text/css"></script>

Because the type was specified as text/css, it should've generated the following:

<link rel="stylesheet" type="text/css" href="/resources/css/bootstrap-datepicker.css">
<link rel="stylesheet" type="text/css" href="/resources/css/bootstrap-timepicker.css">