Methods
starter(basePrefixopt)
A convenient way to initialize Smartdown with common defaults.
Although smartdown.configure() can be used directly by certain applications, for many of the common Smartdown examples, this starter.js file can be used to invoke smartdown.configure() with credible default behavior, and the ability to customize this behavior to a reasonable degree.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
basePrefix |
object |
<optional> |
Configuration options |
- Source:
Example
// Use the smartdown/starter.js convenience wrapper to initialize smartdown.
// See smartdown/src/SimpleSiteExample/ for usage within an index.html.
<script src="lib/starter.js">< /script>
<script>
window.smartdownResourceURL = '';
window.smartdownBaseURL = '/';
window.smartdownStarter();
< /script>