How to use marko - 10 common examples

To help you get started, we’ve selected a few marko examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marko-js / marko / test / autotests / widgets-browser-deprecated / widget-rerender-init-order / components / app-rerender-init-order-child / index.js View on Github external
module.exports = require('marko/widgets/legacy').defineComponent({
    template: require('./template.marko'),
    getInitialState: function(input) {
        return {
            version: input.version,
            id: input.id
        };
    },
    getTemplateData: function(state, input) {
        return {
            version: state.version,
            id: state.id
        };
    },
    init: function() {
        // console.log(module.id, 'init()', this.state);
        window.rerenderInitOrder.push(this.state.id);
github marko-js / marko / test / autotests / components-browser-deprecated / widget-config-attr / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require('marko/legacy-components').renderable(exports, require('./renderer'));
github marko-js / marko / test / deprecated-components-browser / fixtures / widget-multiple-binds-in-template.skip / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require('marko/legacy-components').renderable(exports, require('./renderer'));
github marko-js / marko / test / components-browser / fixtures-deprecated / widget-dom-events-jquery / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require("marko/legacy-components").renderable(exports, require("./renderer"));
github marko-js / marko / test / components-browser / fixtures-deprecated / widget-destroy-unsubscribe-custom-events / components / app-custom-events / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require("marko/legacy-components").renderable(exports, require("./renderer"));
github marko-js / marko / test / autotests / components-browser-deprecated / widget-custom-events / components / app-custom-events / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require('marko/legacy-components').renderable(exports, require('./renderer'));
github marko-js / marko / test / autotests / components-browser-deprecated / widget-custom-events / components / app-bar / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require('marko/legacy-components').renderable(exports, require('./renderer'));
github marko-js / marko / test / autotests / components-browser-deprecated / widget-config-template-data / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require('marko/legacy-components').renderable(exports, require('./renderer'));
github marko-js / marko / test / components-browser / fixtures-deprecated / widget-custom-events / components / app-bar / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require("marko/legacy-components").renderable(exports, require("./renderer"));
github marko-js / marko / test / components-browser / fixtures-deprecated / widget-multiple-binds-in-template / index.js View on Github external
// Export a render(input, callback) method that can be used
// to render this UI component on the client or server
require("marko/legacy-components").renderable(exports, require("./renderer"));