This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var RequestShortener = require("webpack/lib/RequestShortener"); | |
var _ = require("lodash"); | |
/** | |
* TODO Docs | |
* @example new NamedModulesPlugin(/^\.\/app\/(viewmodels|records|adapters)/, /^\.\/app\/(.*)\.js$/) | |
*/ | |
function NamedModulesPlugin(fileWhitelistRegex, replacementRegex) { | |
this.fileWhitelistRegex = fileWhitelistRegex; | |
this.replacementRegex = replacementRegex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./attaching-span"></require> | |
<h1>${message}</h1> | |
<button click.delegate="addNumber('before')">Add number before</button> | |
<button click.delegate="addNumber('after')">Add number after</button> | |
<div> | |
<span as-element="attaching-span" repeat.for="number of numbers">${number}</span> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<!-- Simple usage: --> | |
<h1>message: ${async(message).value}</h1> | |
<!-- With a placeholder: --> | |
<h1>message: ${async(message).value ? async(message).value : '...'}</h1> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="./test"></require> | |
compose: <compose view="test.html" view-model.bind="testInstance"></compose> | |
<hr/> | |
test: <test view-model.bind="testInstance"></test> | |
</template> |