Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added library functions & better string handling
quote() and unquote() format functions can remove and add quotes around the arguments passed to them. eg. say you have some complex css syntax that can't be parsed, you can use string operations and unquote() to do a raw output. @color: #aabbcc; some-property: unquote("[doSomething color: {@color}]"); outputs: some-property: [doSomething color: #aabbcc]; If you subclass lessc then you can add your own functions, prefix them with lib_ to make them visible. Take a look at the implementations of lib_quote and lib_unquote as an example (they are very short). Improved string parsing and concatenation
- Loading branch information
Showing
1 changed file
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters