Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation on css macro libraries (.cml) #97

Open
jakub-g opened this issue Aug 1, 2014 · 0 comments
Open

No documentation on css macro libraries (.cml) #97

jakub-g opened this issue Aug 1, 2014 · 0 comments
Labels

Comments

@jakub-g
Copy link
Collaborator

jakub-g commented Aug 1, 2014

There's no documentation in usermanual on css maco libraries.

Basic usage is as follows:

https://github.com/ariatemplates/ariatemplates/blob/master/test/aria/templates/csslibs/csslibsenv/MainCss.tpl.css#L12

{CSSTemplate {
    $classpath : "test.aria.templates.csslibs.csslibsenv.MainCss",
    $csslibs : {
      myCssLib : "test.aria.templates.csslibs.csslibsenv.libs.MyChildLib"
    }
}}

  {macro main()}
    div.CssLibTestContainer {
      background-color: ${myCssLib.something()}
    }

{/CSSTemplate}

some examples:
https://github.com/ariatemplates/ariatemplates/tree/master/test/aria/templates/csslibs/csslibsenv/libs

Actually we have a misleading and pretty outdated statement saying

Note: At the moment, macro libraries cannot be used in CSS Templates.

@jakub-g jakub-g added the doc label Dec 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant