@chronobserver/htmls
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -0,8 +1,9 @@ | ||
/** Compile the given template. */ | ||
declare function compile(template: string): (data: any) => string | ||
declare namespace compile { | ||
export function compile(template: string): (data: any) => string | ||
/** Compile the given HTML template. */ | ||
export function compileHtml(template: string): (data: any) => string | ||
/** Compile the given XML template. */ | ||
export function compileXml(template: string): (data: any) => string | ||
@@ -9,0 +10,0 @@ } |
@@ -98,3 +98,3 @@ // Generated by LiveScript 1.3.1 | ||
}; | ||
module.exports = (compile.compile = compile, compile.compileHtml = compileHtml, compile.compileXml = compileXml, compile); | ||
module.exports = (compile.compileHtml = compileHtml, compile.compileXml = compileXml, compile); | ||
function repeatString$(str, n){ | ||
@@ -101,0 +101,0 @@ for (var r = ''; n > 0; (n >>= 1) && (str += str)) if (n & 1) r += str; |
{ | ||
"name": "@chronobserver/htmls", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "HyperText Markup LiveScript!", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -98,5 +98,3 @@ # HTMLS - HyperText Markup LiveScript! | ||
- You can only use valid HTML5 element names. | ||
- It's probably a good idea not to use HTML5 element names as variable names in your templates. Something will likely break. | ||
- Regular LiveScript may or may play nice inside your templates. Everything should be fine if you stick to stuff like for loops and ifs though, which should be more than enough for basic templating purposes, right? | ||
- Arguments are accessed via `this` or `@` for short. | ||
- If you want plain text output inside an element, use the `$` function as seen in the example above. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
112
13802
100