Add some machinery to allow us to disable CSS properties (or a subset of values for a property) on a per-product basis.

This commit is contained in:
Bobby Holley 2016-04-06 16:16:00 -07:00
parent 39ab006c8f
commit 4861d5add8
6 changed files with 70 additions and 21 deletions

View file

@ -37,3 +37,4 @@ path = "../../components/util"
[dependencies.style]
path = "../../components/style"
features = ["gecko"]

View file

@ -59,7 +59,7 @@ from mako.template import Template
from mako import exceptions
try:
style_template = Template(filename=os.environ['STYLE_TEMPLATE'], input_encoding='utf8')
style_template.render()
style_template.render(PRODUCT='gecko')
geckolib_template = Template(filename=os.environ['GECKOLIB_TEMPLATE'], input_encoding='utf8')
output = geckolib_template.render(STYLE_STRUCTS = style_template.module.STYLE_STRUCTS,