Ninmonkey.PowerQueryLib icon indicating copy to clipboard operation
Ninmonkey.PowerQueryLib copied to clipboard

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

Open ninmonkey opened this issue 9 months ago • 0 comments

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.

ninmonkey avatar Apr 26 '24 18:04 ninmonkey