marko 2.11.1 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/.npmignore +0 -1
- package/coverage/coverage.json +0 -1
- package/coverage/lcov-report/base.css +0 -213
- package/coverage/lcov-report/index.html +0 -496
- package/coverage/lcov-report/marko-v4/bin/index.html +0 -93
- package/coverage/lcov-report/marko-v4/bin/markoc.js.html +0 -1160
- package/coverage/lcov-report/marko-v4/browser-refresh/index.html +0 -93
- package/coverage/lcov-report/marko-v4/browser-refresh/index.js.html +0 -191
- package/coverage/lcov-report/marko-v4/compiler/Builder.js.html +0 -1859
- package/coverage/lcov-report/marko-v4/compiler/CodeGenerator.js.html +0 -998
- package/coverage/lcov-report/marko-v4/compiler/CodeWriter.js.html +0 -851
- package/coverage/lcov-report/marko-v4/compiler/CompileContext.js.html +0 -1955
- package/coverage/lcov-report/marko-v4/compiler/CompileError.js.html +0 -206
- package/coverage/lcov-report/marko-v4/compiler/Compiler.js.html +0 -473
- package/coverage/lcov-report/marko-v4/compiler/HtmlJsParser.js.html +0 -341
- package/coverage/lcov-report/marko-v4/compiler/InlineCompiler.js.html +0 -317
- package/coverage/lcov-report/marko-v4/compiler/Parser.js.html +0 -1271
- package/coverage/lcov-report/marko-v4/compiler/Walker.js.html +0 -521
- package/coverage/lcov-report/marko-v4/compiler/ast/ArrayContainer.js.html +0 -653
- package/coverage/lcov-report/marko-v4/compiler/ast/ArrayExpression.js.html +0 -278
- package/coverage/lcov-report/marko-v4/compiler/ast/Assignment.js.html +0 -299
- package/coverage/lcov-report/marko-v4/compiler/ast/AttributePlaceholder.js.html +0 -173
- package/coverage/lcov-report/marko-v4/compiler/ast/BinaryExpression.js.html +0 -428
- package/coverage/lcov-report/marko-v4/compiler/ast/Code.js.html +0 -149
- package/coverage/lcov-report/marko-v4/compiler/ast/ConditionalExpression.js.html +0 -239
- package/coverage/lcov-report/marko-v4/compiler/ast/Container.js.html +0 -101
- package/coverage/lcov-report/marko-v4/compiler/ast/ContainerNode.js.html +0 -122
- package/coverage/lcov-report/marko-v4/compiler/ast/CustomTag.js.html +0 -1250
- package/coverage/lcov-report/marko-v4/compiler/ast/Declaration.js.html +0 -146
- package/coverage/lcov-report/marko-v4/compiler/ast/DocumentType.js.html +0 -146
- package/coverage/lcov-report/marko-v4/compiler/ast/Else.js.html +0 -161
- package/coverage/lcov-report/marko-v4/compiler/ast/ElseIf.js.html +0 -152
- package/coverage/lcov-report/marko-v4/compiler/ast/Expression.js.html +0 -152
- package/coverage/lcov-report/marko-v4/compiler/ast/ForEach.js.html +0 -314
- package/coverage/lcov-report/marko-v4/compiler/ast/ForEachProp.js.html +0 -290
- package/coverage/lcov-report/marko-v4/compiler/ast/ForRange.js.html +0 -374
- package/coverage/lcov-report/marko-v4/compiler/ast/ForStatement.js.html +0 -245
- package/coverage/lcov-report/marko-v4/compiler/ast/FunctionCall.js.html +0 -374
- package/coverage/lcov-report/marko-v4/compiler/ast/FunctionDeclaration.js.html +0 -296
- package/coverage/lcov-report/marko-v4/compiler/ast/Html.js.html +0 -311
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/html/generateCode.js.html +0 -473
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/html/index.html +0 -93
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/index.html +0 -93
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/index.js.html +0 -317
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/vdom/generateCode.js.html +0 -128
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/vdom/index.html +0 -93
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttributeCollection.js.html +0 -521
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlComment.js.html +0 -182
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/EndTag.js.html +0 -131
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/StartTag.js.html +0 -227
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/generateCode.js.html +0 -299
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/index.html +0 -119
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/index.html +0 -93
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/index.js.html +0 -578
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/EndElementVDOM.js.html +0 -104
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/HtmlElementVDOM.js.html +0 -620
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/generateCode.js.html +0 -326
- package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/index.html +0 -119
- package/coverage/lcov-report/marko-v4/compiler/ast/Identifier.js.html +0 -137
- package/coverage/lcov-report/marko-v4/compiler/ast/If.js.html +0 -347
- package/coverage/lcov-report/marko-v4/compiler/ast/InvokeMacro.js.html +0 -425
- package/coverage/lcov-report/marko-v4/compiler/ast/Literal.js.html +0 -320
- package/coverage/lcov-report/marko-v4/compiler/ast/LogicalExpression.js.html +0 -359
- package/coverage/lcov-report/marko-v4/compiler/ast/Macro.js.html +0 -176
- package/coverage/lcov-report/marko-v4/compiler/ast/MemberExpression.js.html +0 -308
- package/coverage/lcov-report/marko-v4/compiler/ast/NewExpression.js.html +0 -395
- package/coverage/lcov-report/marko-v4/compiler/ast/Node.js.html +0 -1235
- package/coverage/lcov-report/marko-v4/compiler/ast/ObjectExpression.js.html +0 -290
- package/coverage/lcov-report/marko-v4/compiler/ast/Program.js.html +0 -134
- package/coverage/lcov-report/marko-v4/compiler/ast/Property.js.html +0 -257
- package/coverage/lcov-report/marko-v4/compiler/ast/Return.js.html +0 -170
- package/coverage/lcov-report/marko-v4/compiler/ast/Scriptlet.js.html +0 -152
- package/coverage/lcov-report/marko-v4/compiler/ast/SelfInvokingFunction.js.html +0 -155
- package/coverage/lcov-report/marko-v4/compiler/ast/TemplateRoot.js.html +0 -344
- package/coverage/lcov-report/marko-v4/compiler/ast/Text/html/generateCode.js.html +0 -245
- package/coverage/lcov-report/marko-v4/compiler/ast/Text/html/index.html +0 -93
- package/coverage/lcov-report/marko-v4/compiler/ast/Text/index.html +0 -93
- package/coverage/lcov-report/marko-v4/compiler/ast/Text/index.js.html +0 -215
- package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/TextVDOM.js.html +0 -407
- package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/generateCode.js.html +0 -179
- package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/index.html +0 -106
- package/coverage/lcov-report/marko-v4/compiler/ast/ThisExpression.js.html +0 -131
- package/coverage/lcov-report/marko-v4/compiler/ast/UnaryExpression.js.html +0 -365
- package/coverage/lcov-report/marko-v4/compiler/ast/UpdateExpression.js.html +0 -341
- package/coverage/lcov-report/marko-v4/compiler/ast/VariableDeclarator.js.html +0 -221
- package/coverage/lcov-report/marko-v4/compiler/ast/Vars.js.html +0 -290
- package/coverage/lcov-report/marko-v4/compiler/ast/WhileStatement.js.html +0 -173
- package/coverage/lcov-report/marko-v4/compiler/ast/index.html +0 -678
- package/coverage/lcov-report/marko-v4/compiler/config.js.html +0 -194
- package/coverage/lcov-report/marko-v4/compiler/index.html +0 -236
- package/coverage/lcov-report/marko-v4/compiler/index.js.html +0 -695
- package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index-browser.js.html +0 -158
- package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index.html +0 -106
- package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index.js.html +0 -632
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/DependencyChain.js.html +0 -113
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Attribute.js.html +0 -155
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/ImportedVariable.js.html +0 -140
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/NestedVariable.js.html +0 -134
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Property.js.html +0 -140
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Tag.js.html +0 -797
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Taglib.js.html +0 -440
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Transformer.js.html +0 -236
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/index.html +0 -184
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/index.js.html +0 -65
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/handleAttributes.js.html +0 -161
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/index.html +0 -236
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/index.js.html +0 -191
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/json-file-reader-browser.js.html +0 -143
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/json-file-reader.js.html +0 -155
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-attribute.js.html +0 -659
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-tag.js.html +0 -1931
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-taglib.js.html +0 -1010
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader.js.html +0 -119
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/scanTagsDir-browser.js.html +0 -119
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/scanTagsDir.js.html +0 -548
- package/coverage/lcov-report/marko-v4/compiler/taglib-loader/tag-def-from-code.js.html +0 -287
- package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/TaglibLookup.js.html +0 -1205
- package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/index.html +0 -106
- package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/index.js.html +0 -302
- package/coverage/lcov-report/marko-v4/compiler/util/PosInfo.js.html +0 -140
- package/coverage/lcov-report/marko-v4/compiler/util/UniqueVars.js.html +0 -227
- package/coverage/lcov-report/marko-v4/compiler/util/adjustIndent.js.html +0 -272
- package/coverage/lcov-report/marko-v4/compiler/util/deresolve-browser.js.html +0 -119
- package/coverage/lcov-report/marko-v4/compiler/util/deresolve.js.html +0 -113
- package/coverage/lcov-report/marko-v4/compiler/util/fingerprint.js.html +0 -83
- package/coverage/lcov-report/marko-v4/compiler/util/index.html +0 -366
- package/coverage/lcov-report/marko-v4/compiler/util/isCompoundExpression.js.html +0 -92
- package/coverage/lcov-report/marko-v4/compiler/util/isJavaScriptReservedWord.js.html +0 -80
- package/coverage/lcov-report/marko-v4/compiler/util/isValidJavaScriptIdentifier.js.html +0 -80
- package/coverage/lcov-report/marko-v4/compiler/util/isValidJavaScriptVarName.js.html +0 -95
- package/coverage/lcov-report/marko-v4/compiler/util/javaScriptReservedWords.js.html +0 -260
- package/coverage/lcov-report/marko-v4/compiler/util/macros.js.html +0 -326
- package/coverage/lcov-report/marko-v4/compiler/util/parseExpression.js.html +0 -77
- package/coverage/lcov-report/marko-v4/compiler/util/parseJavaScript.js.html +0 -833
- package/coverage/lcov-report/marko-v4/compiler/util/parseJavaScriptArgs.js.html +0 -101
- package/coverage/lcov-report/marko-v4/compiler/util/parseStatement.js.html +0 -77
- package/coverage/lcov-report/marko-v4/compiler/util/removeComments.js.html +0 -221
- package/coverage/lcov-report/marko-v4/compiler/util/removeDashes.js.html +0 -77
- package/coverage/lcov-report/marko-v4/compiler/util/resolve-browser.js.html +0 -125
- package/coverage/lcov-report/marko-v4/compiler/util/resolve.js.html +0 -128
- package/coverage/lcov-report/marko-v4/compiler/util/safeVarName.js.html +0 -116
- package/coverage/lcov-report/marko-v4/compiler/util/tokenizer.js.html +0 -173
- package/coverage/lcov-report/marko-v4/compiler/util/vdom/VDOMOptimizer.js.html +0 -560
- package/coverage/lcov-report/marko-v4/compiler/util/vdom/index.html +0 -119
- package/coverage/lcov-report/marko-v4/compiler/util/vdom/index.js.html +0 -119
- package/coverage/lcov-report/marko-v4/compiler/util/vdom/isStaticValue.js.html +0 -212
- package/coverage/lcov-report/marko-v4/defineRenderer.js.html +0 -206
- package/coverage/lcov-report/marko-v4/express.js.html +0 -161
- package/coverage/lcov-report/marko-v4/helpers/empty.js.html +0 -77
- package/coverage/lcov-report/marko-v4/helpers/index.html +0 -106
- package/coverage/lcov-report/marko-v4/helpers/notEmpty.js.html +0 -95
- package/coverage/lcov-report/marko-v4/hot-reload/index.html +0 -93
- package/coverage/lcov-report/marko-v4/hot-reload/index.js.html +0 -524
- package/coverage/lcov-report/marko-v4/index.html +0 -158
- package/coverage/lcov-report/marko-v4/node-require-browser.js.html +0 -113
- package/coverage/lcov-report/marko-v4/node-require.js.html +0 -434
- package/coverage/lcov-report/marko-v4/runtime/deprecate.js.html +0 -131
- package/coverage/lcov-report/marko-v4/runtime/forEachPropStatusVar.js.html +0 -158
- package/coverage/lcov-report/marko-v4/runtime/helpers.js.html +0 -839
- package/coverage/lcov-report/marko-v4/runtime/html/helpers.js.html +0 -506
- package/coverage/lcov-report/marko-v4/runtime/html/index.html +0 -106
- package/coverage/lcov-report/marko-v4/runtime/html/index.js.html +0 -914
- package/coverage/lcov-report/marko-v4/runtime/index.html +0 -145
- package/coverage/lcov-report/marko-v4/runtime/inline.js.html +0 -65
- package/coverage/lcov-report/marko-v4/runtime/loader/index-browser-dynamic.js.html +0 -128
- package/coverage/lcov-report/marko-v4/runtime/loader/index-browser.js.html +0 -119
- package/coverage/lcov-report/marko-v4/runtime/loader/index.html +0 -119
- package/coverage/lcov-report/marko-v4/runtime/loader/index.js.html +0 -548
- package/coverage/lcov-report/marko-v4/runtime/stream.js.html +0 -224
- package/coverage/lcov-report/marko-v4/runtime/vdom/helpers.js.html +0 -350
- package/coverage/lcov-report/marko-v4/runtime/vdom/index.html +0 -106
- package/coverage/lcov-report/marko-v4/runtime/vdom/index.js.html +0 -893
- package/coverage/lcov-report/marko-v4/stream.js.html +0 -98
- package/coverage/lcov-report/marko-v4/taglibs/async/async-fragment-to-await-transformer.js.html +0 -221
- package/coverage/lcov-report/marko-v4/taglibs/async/await-nested-tag-transformer.js.html +0 -140
- package/coverage/lcov-report/marko-v4/taglibs/async/await-reorderer-tag.js.html +0 -278
- package/coverage/lcov-report/marko-v4/taglibs/async/await-tag-transformer.js.html +0 -353
- package/coverage/lcov-report/marko-v4/taglibs/async/await-tag.js.html +0 -779
- package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-browser.js.html +0 -65
- package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-runtime.js.html +0 -167
- package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-runtime.min.js.html +0 -65
- package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder.js.html +0 -98
- package/coverage/lcov-report/marko-v4/taglibs/async/index.html +0 -197
- package/coverage/lcov-report/marko-v4/taglibs/cache/cached-fragment-tag-transformer.js.html +0 -89
- package/coverage/lcov-report/marko-v4/taglibs/cache/cached-fragment-tag.js.html +0 -266
- package/coverage/lcov-report/marko-v4/taglibs/cache/default-cache-manager.js.html +0 -173
- package/coverage/lcov-report/marko-v4/taglibs/cache/index.html +0 -119
- package/coverage/lcov-report/marko-v4/taglibs/core/assign-tag.js.html +0 -116
- package/coverage/lcov-report/marko-v4/taglibs/core/core-transformer.js.html +0 -683
- package/coverage/lcov-report/marko-v4/taglibs/core/else-if-tag.js.html +0 -140
- package/coverage/lcov-report/marko-v4/taglibs/core/else-tag.js.html +0 -170
- package/coverage/lcov-report/marko-v4/taglibs/core/for-tag.js.html +0 -131
- package/coverage/lcov-report/marko-v4/taglibs/core/if-tag.js.html +0 -140
- package/coverage/lcov-report/marko-v4/taglibs/core/include-html-tag-browser.js.html +0 -113
- package/coverage/lcov-report/marko-v4/taglibs/core/include-html-tag.js.html +0 -152
- package/coverage/lcov-report/marko-v4/taglibs/core/include-tag.js.html +0 -248
- package/coverage/lcov-report/marko-v4/taglibs/core/include-text-tag-browser.js.html +0 -113
- package/coverage/lcov-report/marko-v4/taglibs/core/include-text-tag.js.html +0 -152
- package/coverage/lcov-report/marko-v4/taglibs/core/index.html +0 -314
- package/coverage/lcov-report/marko-v4/taglibs/core/invoke-tag.js.html +0 -116
- package/coverage/lcov-report/marko-v4/taglibs/core/macro-body-tag.js.html +0 -83
- package/coverage/lcov-report/marko-v4/taglibs/core/macro-tag.js.html +0 -131
- package/coverage/lcov-report/marko-v4/taglibs/core/marko-preserve-whitespace-tag.js.html +0 -71
- package/coverage/lcov-report/marko-v4/taglibs/core/unless-tag.js.html +0 -143
- package/coverage/lcov-report/marko-v4/taglibs/core/util/createLoopNode.js.html +0 -128
- package/coverage/lcov-report/marko-v4/taglibs/core/util/index.html +0 -119
- package/coverage/lcov-report/marko-v4/taglibs/core/util/parseFor.js.html +0 -1145
- package/coverage/lcov-report/marko-v4/taglibs/core/util/parseJavaScriptIdentifier.js.html +0 -131
- package/coverage/lcov-report/marko-v4/taglibs/core/var-tag.js.html +0 -152
- package/coverage/lcov-report/marko-v4/taglibs/core/while-tag.js.html +0 -95
- package/coverage/lcov-report/marko-v4/taglibs/html/html-comment-tag.js.html +0 -146
- package/coverage/lcov-report/marko-v4/taglibs/html/index.html +0 -93
- package/coverage/lcov-report/marko-v4/taglibs/layout/index.html +0 -132
- package/coverage/lcov-report/marko-v4/taglibs/layout/placeholder-tag.js.html +0 -107
- package/coverage/lcov-report/marko-v4/taglibs/layout/put-tag.js.html +0 -77
- package/coverage/lcov-report/marko-v4/taglibs/layout/use-tag-transformer.js.html +0 -137
- package/coverage/lcov-report/marko-v4/taglibs/layout/use-tag.js.html +0 -134
- package/coverage/lcov-report/marko-v4/vdom.js.html +0 -65
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -1
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -158
- package/coverage/lcov.info +0 -13662
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for marko-v4/taglibs/core/include-html-tag-browser.js</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="stylesheet" href="../../../prettify.css" />
|
|
7
|
-
<link rel="stylesheet" href="../../../base.css" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<style type='text/css'>
|
|
10
|
-
.coverage-summary .sorter {
|
|
11
|
-
background-image: url(../../../sort-arrow-sprite.png);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class='wrapper'>
|
|
17
|
-
<div class='pad1'>
|
|
18
|
-
<h1>
|
|
19
|
-
<a href="../../../index.html">all files</a> / <a href="index.html">marko-v4/taglibs/core/</a> include-html-tag-browser.js
|
|
20
|
-
</h1>
|
|
21
|
-
<div class='clearfix'>
|
|
22
|
-
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">0% </span>
|
|
24
|
-
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>0/11</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">0% </span>
|
|
29
|
-
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>0/6</span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">0% </span>
|
|
34
|
-
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>0/1</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">0% </span>
|
|
39
|
-
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>0/11</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class='status-line low'></div>
|
|
45
|
-
<pre><table class="coverage">
|
|
46
|
-
<tr><td class="line-count quiet">1
|
|
47
|
-
2
|
|
48
|
-
3
|
|
49
|
-
4
|
|
50
|
-
5
|
|
51
|
-
6
|
|
52
|
-
7
|
|
53
|
-
8
|
|
54
|
-
9
|
|
55
|
-
10
|
|
56
|
-
11
|
|
57
|
-
12
|
|
58
|
-
13
|
|
59
|
-
14
|
|
60
|
-
15
|
|
61
|
-
16
|
|
62
|
-
17</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
63
|
-
<span class="cline-any cline-no"> </span>
|
|
64
|
-
<span class="cline-any cline-no"> </span>
|
|
65
|
-
<span class="cline-any cline-no"> </span>
|
|
66
|
-
<span class="cline-any cline-no"> </span>
|
|
67
|
-
<span class="cline-any cline-neutral"> </span>
|
|
68
|
-
<span class="cline-any cline-neutral"> </span>
|
|
69
|
-
<span class="cline-any cline-no"> </span>
|
|
70
|
-
<span class="cline-any cline-no"> </span>
|
|
71
|
-
<span class="cline-any cline-no"> </span>
|
|
72
|
-
<span class="cline-any cline-no"> </span>
|
|
73
|
-
<span class="cline-any cline-no"> </span>
|
|
74
|
-
<span class="cline-any cline-neutral"> </span>
|
|
75
|
-
<span class="cline-any cline-neutral"> </span>
|
|
76
|
-
<span class="cline-any cline-no"> </span>
|
|
77
|
-
<span class="cline-any cline-no"> </span>
|
|
78
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
|
|
79
|
-
<span class="cstat-no" title="statement not covered" >module.exports = <span class="fstat-no" title="function not covered" >function codeGenerator(el, codegen) {</span></span>
|
|
80
|
-
<span class="cstat-no" title="statement not covered" > let argument = el.argument;</span>
|
|
81
|
-
<span class="cstat-no" title="statement not covered" > if (!argument) {</span>
|
|
82
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
<span class="cstat-no" title="statement not covered" > let builder = codegen.builder;</span>
|
|
86
|
-
<span class="cstat-no" title="statement not covered" > let pathExpression = builder.parseExpression(argument);</span>
|
|
87
|
-
<span class="cstat-no" title="statement not covered" > if (pathExpression.type !== 'Literal' || typeof pathExpression.value !== 'string') {</span>
|
|
88
|
-
<span class="cstat-no" title="statement not covered" > codegen.addError('Argument to the <include-text> tag should be a string value: <include-text("./foo.txt")/>');</span>
|
|
89
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
<span class="cstat-no" title="statement not covered" > var path = pathExpression.value;</span>
|
|
93
|
-
<span class="cstat-no" title="statement not covered" > return builder.text(builder.literal('<include-html> cannot be compiled in the browser (path="' + path + '")'));</span>
|
|
94
|
-
};</pre></td></tr>
|
|
95
|
-
</table></pre>
|
|
96
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
97
|
-
</div><!-- /wrapper -->
|
|
98
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
99
|
-
Code coverage
|
|
100
|
-
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 18 2016 14:11:32 GMT-0700 (PDT)
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
<script src="../../../prettify.js"></script>
|
|
104
|
-
<script>
|
|
105
|
-
window.onload = function () {
|
|
106
|
-
if (typeof prettyPrint === 'function') {
|
|
107
|
-
prettyPrint();
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
</script>
|
|
111
|
-
<script src="../../../sorter.js"></script>
|
|
112
|
-
</body>
|
|
113
|
-
</html>
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for marko-v4/taglibs/core/include-html-tag.js</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="stylesheet" href="../../../prettify.css" />
|
|
7
|
-
<link rel="stylesheet" href="../../../base.css" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<style type='text/css'>
|
|
10
|
-
.coverage-summary .sorter {
|
|
11
|
-
background-image: url(../../../sort-arrow-sprite.png);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class='wrapper'>
|
|
17
|
-
<div class='pad1'>
|
|
18
|
-
<h1>
|
|
19
|
-
<a href="../../../index.html">all files</a> / <a href="index.html">marko-v4/taglibs/core/</a> include-html-tag.js
|
|
20
|
-
</h1>
|
|
21
|
-
<div class='clearfix'>
|
|
22
|
-
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">73.68% </span>
|
|
24
|
-
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>14/19</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">66.67% </span>
|
|
29
|
-
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>4/6</span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>1/1</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">73.68% </span>
|
|
39
|
-
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>14/19</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class='status-line medium'></div>
|
|
45
|
-
<pre><table class="coverage">
|
|
46
|
-
<tr><td class="line-count quiet">1
|
|
47
|
-
2
|
|
48
|
-
3
|
|
49
|
-
4
|
|
50
|
-
5
|
|
51
|
-
6
|
|
52
|
-
7
|
|
53
|
-
8
|
|
54
|
-
9
|
|
55
|
-
10
|
|
56
|
-
11
|
|
57
|
-
12
|
|
58
|
-
13
|
|
59
|
-
14
|
|
60
|
-
15
|
|
61
|
-
16
|
|
62
|
-
17
|
|
63
|
-
18
|
|
64
|
-
19
|
|
65
|
-
20
|
|
66
|
-
21
|
|
67
|
-
22
|
|
68
|
-
23
|
|
69
|
-
24
|
|
70
|
-
25
|
|
71
|
-
26
|
|
72
|
-
27
|
|
73
|
-
28
|
|
74
|
-
29
|
|
75
|
-
30</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
76
|
-
<span class="cline-any cline-neutral"> </span>
|
|
77
|
-
<span class="cline-any cline-yes">1×</span>
|
|
78
|
-
<span class="cline-any cline-yes">1×</span>
|
|
79
|
-
<span class="cline-any cline-neutral"> </span>
|
|
80
|
-
<span class="cline-any cline-yes">1×</span>
|
|
81
|
-
<span class="cline-any cline-yes">2×</span>
|
|
82
|
-
<span class="cline-any cline-yes">2×</span>
|
|
83
|
-
<span class="cline-any cline-no"> </span>
|
|
84
|
-
<span class="cline-any cline-neutral"> </span>
|
|
85
|
-
<span class="cline-any cline-neutral"> </span>
|
|
86
|
-
<span class="cline-any cline-yes">2×</span>
|
|
87
|
-
<span class="cline-any cline-yes">2×</span>
|
|
88
|
-
<span class="cline-any cline-yes">2×</span>
|
|
89
|
-
<span class="cline-any cline-no"> </span>
|
|
90
|
-
<span class="cline-any cline-no"> </span>
|
|
91
|
-
<span class="cline-any cline-neutral"> </span>
|
|
92
|
-
<span class="cline-any cline-neutral"> </span>
|
|
93
|
-
<span class="cline-any cline-yes">2×</span>
|
|
94
|
-
<span class="cline-any cline-yes">2×</span>
|
|
95
|
-
<span class="cline-any cline-yes">2×</span>
|
|
96
|
-
<span class="cline-any cline-yes">2×</span>
|
|
97
|
-
<span class="cline-any cline-neutral"> </span>
|
|
98
|
-
<span class="cline-any cline-no"> </span>
|
|
99
|
-
<span class="cline-any cline-no"> </span>
|
|
100
|
-
<span class="cline-any cline-neutral"> </span>
|
|
101
|
-
<span class="cline-any cline-neutral"> </span>
|
|
102
|
-
<span class="cline-any cline-yes">2×</span>
|
|
103
|
-
<span class="cline-any cline-yes">2×</span>
|
|
104
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
|
|
105
|
-
|
|
106
|
-
var resolveFrom = require('resolve-from');
|
|
107
|
-
var fs = require('fs');
|
|
108
|
-
|
|
109
|
-
module.exports = function codeGenerator(el, codegen) {
|
|
110
|
-
let argument = el.argument;
|
|
111
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (!argument) {
|
|
112
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
let builder = codegen.builder;
|
|
116
|
-
let pathExpression = builder.parseExpression(argument);
|
|
117
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (pathExpression.type !== 'Literal' || typeof pathExpression.value !== 'string') {
|
|
118
|
-
<span class="cstat-no" title="statement not covered" > codegen.addError('Argument to the <include-html> tag should be a string value: <include-html("./foo.txt")/>');</span>
|
|
119
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
var path = pathExpression.value;
|
|
123
|
-
var dirname = codegen.context.dirname;
|
|
124
|
-
try {
|
|
125
|
-
path = resolveFrom(dirname, path);
|
|
126
|
-
} catch(e) {
|
|
127
|
-
<span class="cstat-no" title="statement not covered" > codegen.addError('File not found: ' + path);</span>
|
|
128
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
var txt = fs.readFileSync(path, { encoding: 'utf8' });
|
|
132
|
-
return builder.text(builder.literal(txt), false /* do not escape since this is HTML*/);
|
|
133
|
-
};</pre></td></tr>
|
|
134
|
-
</table></pre>
|
|
135
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
136
|
-
</div><!-- /wrapper -->
|
|
137
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
138
|
-
Code coverage
|
|
139
|
-
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 18 2016 14:11:32 GMT-0700 (PDT)
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
<script src="../../../prettify.js"></script>
|
|
143
|
-
<script>
|
|
144
|
-
window.onload = function () {
|
|
145
|
-
if (typeof prettyPrint === 'function') {
|
|
146
|
-
prettyPrint();
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
</script>
|
|
150
|
-
<script src="../../../sorter.js"></script>
|
|
151
|
-
</body>
|
|
152
|
-
</html>
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for marko-v4/taglibs/core/include-tag.js</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="stylesheet" href="../../../prettify.css" />
|
|
7
|
-
<link rel="stylesheet" href="../../../base.css" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<style type='text/css'>
|
|
10
|
-
.coverage-summary .sorter {
|
|
11
|
-
background-image: url(../../../sort-arrow-sprite.png);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class='wrapper'>
|
|
17
|
-
<div class='pad1'>
|
|
18
|
-
<h1>
|
|
19
|
-
<a href="../../../index.html">all files</a> / <a href="index.html">marko-v4/taglibs/core/</a> include-tag.js
|
|
20
|
-
</h1>
|
|
21
|
-
<div class='clearfix'>
|
|
22
|
-
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">86.49% </span>
|
|
24
|
-
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>32/37</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">83.33% </span>
|
|
29
|
-
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>15/18</span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>1/1</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">86.49% </span>
|
|
39
|
-
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>32/37</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class='status-line high'></div>
|
|
45
|
-
<pre><table class="coverage">
|
|
46
|
-
<tr><td class="line-count quiet">1
|
|
47
|
-
2
|
|
48
|
-
3
|
|
49
|
-
4
|
|
50
|
-
5
|
|
51
|
-
6
|
|
52
|
-
7
|
|
53
|
-
8
|
|
54
|
-
9
|
|
55
|
-
10
|
|
56
|
-
11
|
|
57
|
-
12
|
|
58
|
-
13
|
|
59
|
-
14
|
|
60
|
-
15
|
|
61
|
-
16
|
|
62
|
-
17
|
|
63
|
-
18
|
|
64
|
-
19
|
|
65
|
-
20
|
|
66
|
-
21
|
|
67
|
-
22
|
|
68
|
-
23
|
|
69
|
-
24
|
|
70
|
-
25
|
|
71
|
-
26
|
|
72
|
-
27
|
|
73
|
-
28
|
|
74
|
-
29
|
|
75
|
-
30
|
|
76
|
-
31
|
|
77
|
-
32
|
|
78
|
-
33
|
|
79
|
-
34
|
|
80
|
-
35
|
|
81
|
-
36
|
|
82
|
-
37
|
|
83
|
-
38
|
|
84
|
-
39
|
|
85
|
-
40
|
|
86
|
-
41
|
|
87
|
-
42
|
|
88
|
-
43
|
|
89
|
-
44
|
|
90
|
-
45
|
|
91
|
-
46
|
|
92
|
-
47
|
|
93
|
-
48
|
|
94
|
-
49
|
|
95
|
-
50
|
|
96
|
-
51
|
|
97
|
-
52
|
|
98
|
-
53
|
|
99
|
-
54
|
|
100
|
-
55
|
|
101
|
-
56
|
|
102
|
-
57
|
|
103
|
-
58
|
|
104
|
-
59
|
|
105
|
-
60
|
|
106
|
-
61
|
|
107
|
-
62</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
108
|
-
<span class="cline-any cline-yes">1×</span>
|
|
109
|
-
<span class="cline-any cline-neutral"> </span>
|
|
110
|
-
<span class="cline-any cline-yes">1×</span>
|
|
111
|
-
<span class="cline-any cline-yes">32×</span>
|
|
112
|
-
<span class="cline-any cline-yes">32×</span>
|
|
113
|
-
<span class="cline-any cline-no"> </span>
|
|
114
|
-
<span class="cline-any cline-neutral"> </span>
|
|
115
|
-
<span class="cline-any cline-neutral"> </span>
|
|
116
|
-
<span class="cline-any cline-yes">32×</span>
|
|
117
|
-
<span class="cline-any cline-yes">32×</span>
|
|
118
|
-
<span class="cline-any cline-yes">32×</span>
|
|
119
|
-
<span class="cline-any cline-no"> </span>
|
|
120
|
-
<span class="cline-any cline-no"> </span>
|
|
121
|
-
<span class="cline-any cline-yes">32×</span>
|
|
122
|
-
<span class="cline-any cline-no"> </span>
|
|
123
|
-
<span class="cline-any cline-no"> </span>
|
|
124
|
-
<span class="cline-any cline-neutral"> </span>
|
|
125
|
-
<span class="cline-any cline-neutral"> </span>
|
|
126
|
-
<span class="cline-any cline-yes">32×</span>
|
|
127
|
-
<span class="cline-any cline-yes">32×</span>
|
|
128
|
-
<span class="cline-any cline-neutral"> </span>
|
|
129
|
-
<span class="cline-any cline-yes">32×</span>
|
|
130
|
-
<span class="cline-any cline-yes">30×</span>
|
|
131
|
-
<span class="cline-any cline-neutral"> </span>
|
|
132
|
-
<span class="cline-any cline-yes">2×</span>
|
|
133
|
-
<span class="cline-any cline-neutral"> </span>
|
|
134
|
-
<span class="cline-any cline-neutral"> </span>
|
|
135
|
-
<span class="cline-any cline-yes">32×</span>
|
|
136
|
-
<span class="cline-any cline-yes">32×</span>
|
|
137
|
-
<span class="cline-any cline-yes">32×</span>
|
|
138
|
-
<span class="cline-any cline-yes">41×</span>
|
|
139
|
-
<span class="cline-any cline-yes">41×</span>
|
|
140
|
-
<span class="cline-any cline-yes">6×</span>
|
|
141
|
-
<span class="cline-any cline-neutral"> </span>
|
|
142
|
-
<span class="cline-any cline-neutral"> </span>
|
|
143
|
-
<span class="cline-any cline-yes">41×</span>
|
|
144
|
-
<span class="cline-any cline-neutral"> </span>
|
|
145
|
-
<span class="cline-any cline-neutral"> </span>
|
|
146
|
-
<span class="cline-any cline-yes">32×</span>
|
|
147
|
-
<span class="cline-any cline-yes">8×</span>
|
|
148
|
-
<span class="cline-any cline-neutral"> </span>
|
|
149
|
-
<span class="cline-any cline-neutral"> </span>
|
|
150
|
-
<span class="cline-any cline-yes">32×</span>
|
|
151
|
-
<span class="cline-any cline-yes">12×</span>
|
|
152
|
-
<span class="cline-any cline-yes">2×</span>
|
|
153
|
-
<span class="cline-any cline-neutral"> </span>
|
|
154
|
-
<span class="cline-any cline-yes">10×</span>
|
|
155
|
-
<span class="cline-any cline-yes">10×</span>
|
|
156
|
-
<span class="cline-any cline-neutral"> </span>
|
|
157
|
-
<span class="cline-any cline-neutral"> </span>
|
|
158
|
-
<span class="cline-any cline-neutral"> </span>
|
|
159
|
-
<span class="cline-any cline-neutral"> </span>
|
|
160
|
-
<span class="cline-any cline-neutral"> </span>
|
|
161
|
-
<span class="cline-any cline-yes">20×</span>
|
|
162
|
-
<span class="cline-any cline-neutral"> </span>
|
|
163
|
-
<span class="cline-any cline-neutral"> </span>
|
|
164
|
-
<span class="cline-any cline-yes">32×</span>
|
|
165
|
-
<span class="cline-any cline-yes">32×</span>
|
|
166
|
-
<span class="cline-any cline-yes">32×</span>
|
|
167
|
-
<span class="cline-any cline-yes">32×</span>
|
|
168
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
|
|
169
|
-
var removeHyphens = require('../../compiler/util/removeDashes');
|
|
170
|
-
|
|
171
|
-
module.exports = function codeGenerator(el, codegen) {
|
|
172
|
-
let argument = el.argument;
|
|
173
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (!argument) {
|
|
174
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
let builder = codegen.builder;
|
|
178
|
-
let args = builder.parseJavaScriptArgs(argument);
|
|
179
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (args.length === 0) {
|
|
180
|
-
<span class="cstat-no" title="statement not covered" > codegen.addError('Template path is required for the <include(templatePath[, templateData])> tag');</span>
|
|
181
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
182
|
-
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (args.length > 2) {
|
|
183
|
-
<span class="cstat-no" title="statement not covered" > codegen.addError('Wrong number of arguments passed to the <include> tag. Expected: <include(templatePath[, templateData])> tag');</span>
|
|
184
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
let templatePath = args[0];
|
|
188
|
-
let templateVar;
|
|
189
|
-
|
|
190
|
-
if (templatePath.type === 'Literal') {
|
|
191
|
-
templateVar = codegen.context.importTemplate(templatePath.value);
|
|
192
|
-
} else {
|
|
193
|
-
templateVar = templatePath;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
let templateData = {};
|
|
197
|
-
let attrs = el.getAttributes();
|
|
198
|
-
attrs.forEach((attr) => {
|
|
199
|
-
var propName = attr.name;
|
|
200
|
-
if (propName.indexOf('-') !== -1) {
|
|
201
|
-
propName = removeHyphens(propName); // Convert the property name to camel case
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
templateData[propName] = attr.value;
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
if (el.body && el.body.length) {
|
|
208
|
-
templateData.renderBody = builder.renderBodyFunction(el.body);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (args.length === 2) {
|
|
212
|
-
if (Object.keys(templateData).length === 0) {
|
|
213
|
-
templateData = args[1];
|
|
214
|
-
} else {
|
|
215
|
-
let mergeVar = codegen.context.helper('merge');
|
|
216
|
-
templateData = builder.functionCall(mergeVar, [
|
|
217
|
-
builder.literal(templateData), // Input props from the attributes take precedence
|
|
218
|
-
args[1] // The template data object is passed as the second argument: <include("./foo.marko", { ... })/>
|
|
219
|
-
]);
|
|
220
|
-
}
|
|
221
|
-
} else {
|
|
222
|
-
templateData = builder.literal(templateData);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
let renderMethod = builder.memberExpression(templateVar, builder.identifier('render'));
|
|
226
|
-
let renderArgs = [ templateData, 'out' ];
|
|
227
|
-
let renderFunctionCall = builder.functionCall(renderMethod, renderArgs);
|
|
228
|
-
return renderFunctionCall;
|
|
229
|
-
};</pre></td></tr>
|
|
230
|
-
</table></pre>
|
|
231
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
232
|
-
</div><!-- /wrapper -->
|
|
233
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
234
|
-
Code coverage
|
|
235
|
-
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 18 2016 14:11:32 GMT-0700 (PDT)
|
|
236
|
-
</div>
|
|
237
|
-
</div>
|
|
238
|
-
<script src="../../../prettify.js"></script>
|
|
239
|
-
<script>
|
|
240
|
-
window.onload = function () {
|
|
241
|
-
if (typeof prettyPrint === 'function') {
|
|
242
|
-
prettyPrint();
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
</script>
|
|
246
|
-
<script src="../../../sorter.js"></script>
|
|
247
|
-
</body>
|
|
248
|
-
</html>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for marko-v4/taglibs/core/include-text-tag-browser.js</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="stylesheet" href="../../../prettify.css" />
|
|
7
|
-
<link rel="stylesheet" href="../../../base.css" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<style type='text/css'>
|
|
10
|
-
.coverage-summary .sorter {
|
|
11
|
-
background-image: url(../../../sort-arrow-sprite.png);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class='wrapper'>
|
|
17
|
-
<div class='pad1'>
|
|
18
|
-
<h1>
|
|
19
|
-
<a href="../../../index.html">all files</a> / <a href="index.html">marko-v4/taglibs/core/</a> include-text-tag-browser.js
|
|
20
|
-
</h1>
|
|
21
|
-
<div class='clearfix'>
|
|
22
|
-
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">0% </span>
|
|
24
|
-
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>0/11</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">0% </span>
|
|
29
|
-
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>0/6</span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">0% </span>
|
|
34
|
-
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>0/1</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">0% </span>
|
|
39
|
-
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>0/11</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class='status-line low'></div>
|
|
45
|
-
<pre><table class="coverage">
|
|
46
|
-
<tr><td class="line-count quiet">1
|
|
47
|
-
2
|
|
48
|
-
3
|
|
49
|
-
4
|
|
50
|
-
5
|
|
51
|
-
6
|
|
52
|
-
7
|
|
53
|
-
8
|
|
54
|
-
9
|
|
55
|
-
10
|
|
56
|
-
11
|
|
57
|
-
12
|
|
58
|
-
13
|
|
59
|
-
14
|
|
60
|
-
15
|
|
61
|
-
16
|
|
62
|
-
17</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
63
|
-
<span class="cline-any cline-no"> </span>
|
|
64
|
-
<span class="cline-any cline-no"> </span>
|
|
65
|
-
<span class="cline-any cline-no"> </span>
|
|
66
|
-
<span class="cline-any cline-no"> </span>
|
|
67
|
-
<span class="cline-any cline-neutral"> </span>
|
|
68
|
-
<span class="cline-any cline-neutral"> </span>
|
|
69
|
-
<span class="cline-any cline-no"> </span>
|
|
70
|
-
<span class="cline-any cline-no"> </span>
|
|
71
|
-
<span class="cline-any cline-no"> </span>
|
|
72
|
-
<span class="cline-any cline-no"> </span>
|
|
73
|
-
<span class="cline-any cline-no"> </span>
|
|
74
|
-
<span class="cline-any cline-neutral"> </span>
|
|
75
|
-
<span class="cline-any cline-neutral"> </span>
|
|
76
|
-
<span class="cline-any cline-no"> </span>
|
|
77
|
-
<span class="cline-any cline-no"> </span>
|
|
78
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
|
|
79
|
-
<span class="cstat-no" title="statement not covered" >module.exports = <span class="fstat-no" title="function not covered" >function codeGenerator(el, codegen) {</span></span>
|
|
80
|
-
<span class="cstat-no" title="statement not covered" > let argument = el.argument;</span>
|
|
81
|
-
<span class="cstat-no" title="statement not covered" > if (!argument) {</span>
|
|
82
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
<span class="cstat-no" title="statement not covered" > let builder = codegen.builder;</span>
|
|
86
|
-
<span class="cstat-no" title="statement not covered" > let pathExpression = builder.parseExpression(argument);</span>
|
|
87
|
-
<span class="cstat-no" title="statement not covered" > if (pathExpression.type !== 'Literal' || typeof pathExpression.value !== 'string') {</span>
|
|
88
|
-
<span class="cstat-no" title="statement not covered" > codegen.addError('Argument to the <include-text> tag should be a string value: <include-text("./foo.txt")/>');</span>
|
|
89
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
<span class="cstat-no" title="statement not covered" > var path = pathExpression.value;</span>
|
|
93
|
-
<span class="cstat-no" title="statement not covered" > return builder.text(builder.literal('<include-text> cannot be compiled in the browser (path="' + path + '")'));</span>
|
|
94
|
-
};</pre></td></tr>
|
|
95
|
-
</table></pre>
|
|
96
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
97
|
-
</div><!-- /wrapper -->
|
|
98
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
99
|
-
Code coverage
|
|
100
|
-
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 18 2016 14:11:32 GMT-0700 (PDT)
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
<script src="../../../prettify.js"></script>
|
|
104
|
-
<script>
|
|
105
|
-
window.onload = function () {
|
|
106
|
-
if (typeof prettyPrint === 'function') {
|
|
107
|
-
prettyPrint();
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
</script>
|
|
111
|
-
<script src="../../../sorter.js"></script>
|
|
112
|
-
</body>
|
|
113
|
-
</html>
|