It is a first time in my entire developer's career when I really enjoy writing frontend part of the sites. And this is because of RaptorJS Optimizer + Marko. Thank you for these really cool tools!
Sometimes I just need to copy fingerprinted static resource to outputDir (default to "static" folder), that is defined in HTML template and not in CSS files. For instance, below I specified URL of favicon:
...
<link rel="shortcut icon" href="/common/favicon.ico"> ...
</head>
<body>
...
</body>
</html>
Is it possible to "optimize" href attribute and produce something like favicon-b8fcec0d.ico in "static" folder? So that I can safely turn off HTTP expiration for favicon.
For <img /> tags we have <optimizer-img /> Marko tag. Maybe we have the similar functionality for arbitrary resources?
For instance, something like that:
<optimizer-tag tag-name="link" rel="shortcut icon" resource-href="./favicon.ico">
Attributes that starts with "resource-name" are paths to resources which should be fingerprinted. Such attributes should be rendered as "name".
Or maybe even today we can require some Optimizer module and write something like the following?
<require module="optimizer/resource-optimizer" var="optimizer" />
...
<link rel="shortcut icon" href="${optimizer.url('./favicon.ico')}">
Is there is a way to do something similar?
Thank you!