new SearchController()
Members
(static) self.error :boolean
Flag if there was an error receiving a response
Type:
- boolean
(static) self.externalLink :string
The external search link.
Type:
- string
(static) self.query :string
The search query
Type:
- string
(static) self.results :array
The search results.
Type:
- array
Methods
(static) self.extension(url)
Determines what extension (if any) the URI is referencing
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL |
Returns:
The extension abbreviation
(static) self.internalLink(path, name)
Get the absolute URL of an internal link
Parameters:
Name | Type | Description |
---|---|---|
path |
string | |
name |
string |
Returns:
The absolute URL
(static) self.markdown(text)
Parses possible markdown, or other encoded text, as HTML
Parameters:
Name | Type | Description |
---|---|---|
text |
string | The text to parse |
Returns:
The text in HTML format