Universeorange.com/Docs/

R3m/framework Function reference import

{import(String $url , String $controller, Array $collection)}
{import(String $url , Array $collection)}

{import()} — Import a javascript .js file or a stylesheet .css.

Importing Menu.js from the Host public html directory Public.

"Host/<subdomain>/<domain>/<extension>/Public/Docs/Js/Menu/Menu.js"
"Host/<subdomain>/<domain>/<extension>/Docs/Public/Js/Menu/Menu.js"
"Host/<subdomain>/<domain>/<extension>/Docs/View/Js/Menu/Menu.js"

Adding section.name as a collection, which will be available in the javascript source as const name = priya.collection('section.name');.

{import(
    'Menu/Menu.js',
    'Docs',
    [
        'section.name' => 'menu'
    ]
)}    
Last modified: 2021-06-07

© 2021 universeorange.com