Skip to content

Write.Html functions should automatically detect if your data should be a <ul> or definition or <code> etc #9

Open
@ninmonkey

Description

@ninmonkey

Several Explicit Tag names can be automatically detected. Either based on argument layouts or based on meta fields.

The proposed abbreviated syntax is:

    {
        [  Creator = "Jen Doe", Web = "www.foo.com"  ]
    }

The old syntax is more verbose

    UL({
        B("Creator: ") & "Jen Doe",
        B("Web: ") & "www.foo.com" 
    }),

You guess some types based on their datatype's shape, like:

    explicit_FromShapes = 
       {
            [  Key = "Creator: ", Value = "Jen Doe" ],
            [  Key = "Web: ", Value = "www.foo.com" ],
       }

Ascribe metadata to force it to render as a certain element type

{
    // 
    [   Creator = "foo",
        repo = "github.com.../"  
    ]   meta [ tag = "div", class

Now the data's definition control the processing. Rather than using optional parameters in a function.

Metadata

Metadata

Assignees

Labels

UXUser ExperienceenhancementNew feature or requestideas

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions