• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Using @import causes LESS parse errors

Affected version
2.0 Beta 4

Kirby

Well-known member
#1
This is somewhat between a bug report and a feature request, though as it does generate errors I decided to file it as a bug report ;)

If @import is used for LESS templates containing XF style properties like @xf-publicLogoUrl, the following error is being logged:

Code:
Less_Exception_Compiler: variable @xf-publicLogoUrl is undefined in file <path>/internal_data/temp/xftJ0FIR
This happens because \XF\CssRenderer::handleLessImport does not prepare the included template for LESS parsing.

https://xenforo.com/community/threa...style-development-for-xf2.134907/post-1178902
 
Last edited: