You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After scanning through the code I'm not certain that this feature doesn't already exist, If it dose it obscure and undocumented, however I don't think its actually been implemented.
If its all ready possible to do this how to do so should be documented.
As for what I think this feature should be it the ability to pass a dict of less variables to the compile function, along with python functions for creating and manipulating these variables, some of these functions do exist, but they appear to be undocumented internal functions for handling the equivalent functions calls in the less code it self.
current compile sig: def compile(file, minify=False, xminify=False, tabs=False, spaces=True):
This would provide for the usage of less as a template system for CSS with dynamic content generations, for example a CMS with several parameters for defining the sites colour scheme.
The text was updated successfully, but these errors were encountered:
After scanning through the code I'm not certain that this feature doesn't already exist, If it dose it obscure and undocumented, however I don't think its actually been implemented.
If its all ready possible to do this how to do so should be documented.
As for what I think this feature should be it the ability to pass a dict of less variables to the compile function, along with python functions for creating and manipulating these variables, some of these functions do exist, but they appear to be undocumented internal functions for handling the equivalent functions calls in the less code it self.
current compile sig:
def compile(file, minify=False, xminify=False, tabs=False, spaces=True):
suggested sig:
def compile(file, minify=False, xminify=False, tabs=False, spaces=True, variables={}):
suggested ussage:
This would provide for the usage of less as a template system for CSS with dynamic content generations, for example a CMS with several parameters for defining the sites colour scheme.
The text was updated successfully, but these errors were encountered: