Skip to content

marko-js-samples/override-core-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Override Marko Core Tag

This is an example of overriding the Marko core await tag to enforce a default timeout if the user did not specify a timeout.

Installation

npm install marko-js-samples/override-core-tag --save

Usage

$ var personPromise = new Promise((resolve, reject) => {
    setTimeout(function() {
        resolve({
            name: 'Frank'
        });
    }, 15000);
});

<await(person from personPromise)>
    <div>Hello ${person.name}!</div>
</await>

About

Example of overriding a core Marko tag

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published