fix extension map format mistake
This commit is contained in:
parent
7161e66381
commit
755b817e71
|
@ -56,22 +56,22 @@
|
||||||
(defonce extensions
|
(defonce extensions
|
||||||
{:functions
|
{:functions
|
||||||
{"path"
|
{"path"
|
||||||
{:fn (fn [url]
|
(fn [url]
|
||||||
(get-context-url url))}
|
(get-context-url url))
|
||||||
|
|
||||||
"stylesheet"
|
"stylesheet"
|
||||||
{:fn (fn [url & [media]]
|
(fn [url & [media]]
|
||||||
(let [fmt (if media
|
(let [fmt (if media
|
||||||
"<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" media=\"%s\" />"
|
"<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" media=\"%s\" />"
|
||||||
"<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" />")
|
"<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" />")
|
||||||
resource-path (get-minified-resource-url url)]
|
resource-path (get-minified-resource-url url)]
|
||||||
(format fmt (get-url-string resource-path) media)))}
|
(format fmt (get-url-string resource-path) media)))
|
||||||
|
|
||||||
"javascript"
|
"javascript"
|
||||||
{:fn (fn [url]
|
(fn [url]
|
||||||
(let [fmt "<script type=\"text/javascript\" src=\"%s\"></script>"
|
(let [fmt "<script type=\"text/javascript\" src=\"%s\"></script>"
|
||||||
resource-path (get-minified-resource-url url)]
|
resource-path (get-minified-resource-url url)]
|
||||||
(format fmt (get-url-string resource-path))))}}
|
(format fmt (get-url-string resource-path))))}
|
||||||
|
|
||||||
:filters
|
:filters
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in a new issue