Skip to content

Enhancement: add "|none" to each named argument of each code section method #78

Description

@dumblob

Currently it's impossible to simply express, that one doesn't want to mention an attribute in some cases, but does want to in other cases anchor(_class=%c ? c : none){ .... This might be easily achieved by enhancing the interface of each code section method argument with |none with the following semantics:

anchor(href=none){} -> <a></a>
anchor(href=5){} -> <a href="5"></a>

none could be also used with the same semantics for return values of code section methods:

anchor { "" } -> <a></a>
anchor {} -> anchor { none } ->

But this use for whole tags seems slightly odd, even though it's handy.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions