Skip to content

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

Description

@jakub-g

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions