1.0.6 • Published 8 years ago

string-templates v1.0.6

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

String-Templates-JS

String-Templates-JS is the JS port of my String-Templates module. It's lightweight and usable almost everywhere.

API

export class Template {
  constructor(wrappers = ['{', '}']): Template
  render(content, parameters = {}): String
  static create(wrappers = DEFAULT): Template
}
export class Builder {
  constructor(contents = '', wrappers = DEFAULT): Builder
  add(content): this
  addLine(content): this
  render(content, parameters = null): this
  renderLine(content, parameters = null): this
  toString(): String
  static create(contents = '', wrappers = DEFAULT): Builder
}

LICENSE

This project is licensed under the terms of MIT License, See the LICENSE file for more info

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago