L'erreur que je reçois est: incompatibilité de type: 'feuilles de style'Incompatibilité de type Dictionnaire dans VBScript
Stylesheets est défini comme:
sub stylesheets(collection)
for each key in collection.Keys
response.write(stylesheet(key, collection.Item(key)))
next
end sub
' returns a link tag for each object in the collection
function stylesheet(asset, media_type)
if (media_type="") then
media_type="screen"
end if
return "<link href=""" & asset_url(asset) & """ type=""text/css"" media=""" _
& media_type & """ />"
end function
Et il est appelé en tant que tel:
<% stylesheets(site_stylesheets) %>
Où site_stylesheets a été définie comme:
' stylesheets is a collection of the stylesheets to be included on all pages
Set site_stylesheets = CreateObject("Scripting.Dictionary")
site_stylesheets.Add "css/endoworks.css", "screen"
Cela fait longtemps que je n'ai pas fait de VBScript. J'apprécierais vraiment toute aide.