Skip to content

Commit c41045b

Browse files
authored
Removing the rtype API definitions from README
Primarily because [rtype](https://github.com/ericelliott/rtype) seems to be a stalled project that hasn't gotten updated for 4 years. Similar more up-to-date definitions can be found in the TypeScript definitions: [@types/mustache](https://www.npmjs.com/package/@types/mustache).
1 parent bd742d5 commit c41045b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -106,29 +106,6 @@ var output = Mustache.render("{{title}} spends {{calc}}", view);
106106

107107
In this example, the `Mustache.render` function takes two parameters: 1) the [mustache](http://mustache.github.com/) template and 2) a `view` object that contains the data and code needed to render the template.
108108

109-
## API
110-
111-
Following is an [rtype](https://git.io/rtype) signature of the most commonly used functions.
112-
113-
```js
114-
Mustache.render(
115-
template : String,
116-
view : Object,
117-
partials? : Object,
118-
tags = ['{{', '}}'] : Tags,
119-
) => String
120-
121-
Mustache.parse(
122-
template : String,
123-
tags = ['{{', '}}'] : Tags,
124-
) => Token[]
125-
126-
interface Token [String, String, Number, Number, Token[]?, Number?]
127-
128-
interface Tags [String, String]
129-
130-
```
131-
132109
## Templates
133110

134111
A [mustache](http://mustache.github.com/) template is a string that contains any number of mustache tags. Tags are indicated by the double mustaches that surround them. `{{person}}` is a tag, as is `{{#person}}`. In both examples we refer to `person` as the tag's key. There are several types of tags available in mustache.js, described below.

0 commit comments

Comments
 (0)