1.5.0 • Published 3 years ago

sp-templates v1.5.0

Weekly downloads
7
License
ISC
Repository
gitlab
Last release
3 years ago

SP Templates

Premade HTML templates for kickstarting a new web application. Uses encode-html-template-tag under the hood.

Dependencies

  • css.escape: ^1.5.1
  • encode-html-template-tag: ^2.4.0

Modules

Members

sp-templates

sp-templates.page(options, body)

Create a basic page with header, nav, main and footer.

Kind: static method of sp-templates

ParamTypeDescription
optionsObjectPage options
options.titleStringPage title
options.colourStringTheme colour
bodyString | HtmlThe body

sp-templates.time(options, date)

Create an HTML element representing a date and time

Kind: static method of sp-templates

ParamTypeDescription
optionsObjectExtra attributes to add to the time component
options.langStringThe locale to render the text in
dateDateThe datetime to use

tag

Deprecated

Kind: global variable

1.5.0

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago