Coding

A feature let you code your webpage template

This feature exists for creating anything with Javascrtipt. As long as, you assign string html data in global variable result. Rino will fetch it and place them in your web page. Rino Docs use this feature to generate list of page links in its sidebar.

data and props are available in the scope as global variables. The syntax is {{()}}

Example:

{{(
    result = `<ul class="menu-list">`
    let list = data.pageList;

    for(let i = 0; i < list.length; i++)
    {
        if(i == 0)
        {
            result = result + `
                <li><a href="/">${ list[i] }</a></li>
            `;
        }
        else
        {
            result = result + `
                <li><a href="/${ list[i] }.html">${ list[i] }</a></li>
            `;
        }
    }

    result = result + `</ul>`
)}}