Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Allowing variables (constants) in attributes #726

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

socialblogsite
Copy link

This is my first pull request ever. Excuse all my mistakes (you are welcome to point them out though).

Now properties can be expressed as variables, which will use the constants defined in the init.

e.g.
val(--constantname) = _constantname

Example usage:
data-top="margin-top: val(--constantname)px;"

This is my first pull request ever. Excuse all my mistakes (you are welcome to point them out though).

Now properties can be expressed as variables, which will use the constants defined in the init.

e.g. 
val(--constantname)  =   _constantname

Example usage:
data-top="margin-top: val(--constantname)px;"
@Prinzhorn
Copy link
Owner

This needs further discussion. It mixes two completely different concept (I would not reuse the constants option for something which is semantically completely different). See also #69

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants