Date: 2009-11-17 09:43 pm (UTC)
kaigou: this is what I do, darling (T experience turbulence)
From: [personal profile] kaigou
Yes and no. If I follow the logic, then currently it's something like this:

-- layout defines property $X
-- layout sets $X = 'blue' ---> default value
-- theme sets $X = 'green' ---> default value for theme
-- user sets $X = 'red' ---> overrides all of the above

Right? So if instead of setting $X in the theme, I define it in the layout like so:

-- layout defines property $X
-- layout defines property $Y
-- layout sets $X = 'blue' ---> default value
-- layout sets $Y = true
-- layout function sez:
... if $Y is true, $X = 'blue', else $X = $Z
-- theme sets $Y = false
-- theme sets $Z = green
-- user sets $X = 'red' ---> overrides all of the above by setting $Y as true and $X as red, theme value is ignored

... OR I could just say to hell with it and do it long-hand, because this is like spending twenty dollars to save ten cents, isn't it.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

Dreamwidth style system discussion

June 2025

S M T W T F S
1234567
891011121314
15161718 1920 21
22232425262728
2930     

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 28th, 2025 06:25 am
Powered by Dreamwidth Studios