Xarigami

project tracker

Xarigami Core [key: xgami]

All trackers
Summary
Issue List
Road Map
Changelog

Issue xgami-000875

Issue summary Details
Project:
Xarigami Core
Key:
xgami-000875
Type:
New feature
Reporter:
Lakys
Priority:
High
Severity:
Minor
Status:
Closed
Resolution:
Implemented
Owner:
Lakys
Due:
- xarigami cumulus 1.4.0
Milestone:
None

Dynamic CSS compilation and context

Reported:  Jul 12, 2011 06:02 AM    Updated: Jul 12, 2011 06:26 AM by

Closed: Jul 12, 2011 06:26 AM    by Lakys

Version affected: - xarigami cumulus 1.4.0

Dynamic CSS compilation is a basic and then very fast operation consisting of searching and replacing some identified named skin vars in the css code by their rendered values.

In order to prevent useless compilation and to improve further the performances, the css should be compiled only if required, the resulting file cached, and possibly reused. We define then by context, the environment, input parameters required to process and to compile a given css file. Several contexts can coexist for a given dynamic css file. The obsolescence is not controlled by anything else than the number of files cached.

Eg: if you want for instance to give a given color shade depending of night and day for each and every hours, the system can provide the dozen of css compiled version for the given dynamic css file.

A dynamic css file uses skin vars, with the target being the css file (static one) used.

A basic skin var will be replaced in css code using: @skin_var_name where the name is 'skin_var_name' A generator skin var will require @skin_var_generator_name:; or possibly later @skin_var_generator_name{} depending where it is used. The idea is to not break syntax coloring in editors, nor the consistence of css files. We also aim to keep the syntax not far from .LESS format.

For more information on skin vars: http://xarigami.com/contrails/display/xgami/874

More information on skin var generators: ...

Actions

in core.template scenario

#

Issue closed by Lakys

#