X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=README.md;h=c6f92261925b04abe67a34bbce9b18906a51364d;hb=a2c0e2fc57bb8f25f694e16eb4e51d6970b28829;hp=66d16fd19dcee2f060d972d0944fce7192cec45f;hpb=4ab85bf22ece77cccd4e92435208bca5858816f6;p=squeep-html-template-helper diff --git a/README.md b/README.md index 66d16fd..c6f9226 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,16 @@ Specific to Squeep Framework Applications, this module has strong opinions and m ## API -`htmlPage(pagePathLevel, ctx, options, main = [])` +- `initContext(ctx)` +- `htmlPage(pagePathLevel, ctx, options, main = [])` +- `dateOrNot(date, otherwise)` +- `dateFormat(date, pInf nInf, otherwise)` +- `timeElement(date, options)` +- `secondsToPeriod(seconds)` +- `indented(intent, list)` +- `UL(items, indent, attributes, itemAttributesGenerator)` +- `OL(items, indent, attributes, itemAttributesGenerator)` +- `LI(item, indent, attributes)` ### Context @@ -26,6 +35,7 @@ If present, added as a query parameter (`r`, for redirect) to the logout link. - `ctx.notifications` Lists of errors and notices to show at top of page, before main content. +`initContext` will create the arrays. ### Options