prototype.exe 0.0.10 → 0.0.12
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 +1 -1
- package/src/prototype.js +5 -2
package/package.json
CHANGED
package/src/prototype.js
CHANGED
|
@@ -83,6 +83,8 @@ Define (Object, "clone", function (object) { return JSON.parse (JSON.stringify (
|
|
|
83
83
|
Define (Object, "un_define", function (input) { if (arguments.length) return input === undefined; else return undefined; });
|
|
84
84
|
Define (Object, "un_set", function (input) { return input === undefined || input === null; });
|
|
85
85
|
|
|
86
|
+
Define (Object, "to_string", function (input) { return input.toString (); });
|
|
87
|
+
|
|
86
88
|
/**
|
|
87
89
|
* array
|
|
88
90
|
*
|
|
@@ -939,8 +941,8 @@ Define (Function, "html", class {
|
|
|
939
941
|
this.markup.push (4, `<h${h}>${this.heading [i]}</h${h}>`);
|
|
940
942
|
}
|
|
941
943
|
this.markup.push (4, `<date>{{ content:date }}</date>`);
|
|
942
|
-
this.markup.push (4, `<p>${this.var ["content:
|
|
943
|
-
this.markup.push (4, `<article>${this.var ["content:article"] || this.var
|
|
944
|
+
this.markup.push (4, `<p>${this.var ["content:paragraph"] || ""}</p>`);
|
|
945
|
+
this.markup.push (4, `<article>${this.var ["content:article"] || this.var ["content:description"] || this.var.content || ""}</article>`);
|
|
944
946
|
if (this.var.anchor) for (var i in this.var.anchor) this.markup.push (4, `<a href="${this.var.anchor [i].url}" title="${this.var.anchor [i].info}">${this.var.anchor [i].name}</a>`);
|
|
945
947
|
this.markup.push (3, `</div>`);
|
|
946
948
|
this.markup.push (2, `</div>`);
|
|
@@ -1652,6 +1654,7 @@ Symbol.export = {
|
|
|
1652
1654
|
owl: Function.owl,
|
|
1653
1655
|
asset: Function.asset, theme: Function.theme, template: Function.template,
|
|
1654
1656
|
sitemap: Function.sitemap, "sitemap.xsl": Function ["sitemap.xsl"], "sitemap.xsl:index": Function ["sitemap.xsl:index"],
|
|
1657
|
+
to_string: Object.to_string,
|
|
1655
1658
|
zero: 0, one: 1,
|
|
1656
1659
|
}
|
|
1657
1660
|
|