Foundry: Improved support for LESS development.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3403 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-05-15 07:14:16 +00:00
parent 7b8def2a67
commit caae900e3e
1 changed files with 10 additions and 1 deletions

View File

@ -79,7 +79,9 @@
<xsl:variable name="less-onthefly" <xsl:variable name="less-onthefly"
as="xs:boolean" as="xs:boolean"
select="foundry:boolean(foundry:get-setting('', 'less-onthefly', 'false'))"/> select="foundry:boolean(foundry:get-setting('',
'less-onthefly',
'false'))"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$css-files-map/css-files/application[@name = $application and @class = $class]"> <xsl:when test="$css-files-map/css-files/application[@name = $application and @class = $class]">
@ -148,6 +150,13 @@
disable-output-escaping="yes"/> disable-output-escaping="yes"/>
<xsl:if test="$less-onthefly and foundry:debug-enabled()"> <xsl:if test="$less-onthefly and foundry:debug-enabled()">
<script type="text/javascript">
less = {
env: "development",
dumpLineNumbers: "all"
};
</script>
<script type="text/javascript" <script type="text/javascript"
src="{foundry:gen-path('scripts/less.min.js', 'internal')}"/> src="{foundry:gen-path('scripts/less.min.js', 'internal')}"/>
</xsl:if> </xsl:if>