-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am creating a theme for my ZK App and have stored the SVG images as less variables as follows:
@svgCircle: ~'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="circle" height="100" width="100"><circle cx="50" cy="50" r="40" stroke-width="3" fill="#14a2bf"/></svg>';
When this less is compiled when building my theme, the @svgCircle resolves to the following:
'/*__TAGLIB <svg>...</svg> TAGLIB__*/'
I believe this is part of the conversion to .dsp files, is there any way to prevent this from happening.
Thanks in advance..
Hi,
Are you using zkless-engine-maven-plugin to compile LESS to .dsp files? It seems caused by the regex replacement in SyntaxHelper.encodeDsp() API. You can download the source code and try overriding it to match your need.
Thanks vincentjian.
I ended overriding the method in zkless-engine-maven-plugin, and it now works.
Asked: 2014-05-12 08:53:43 +0800
Seen: 6 times
Last updated: Jun 17 '14