Welcome to Porter JS
This project is just underway. This is meant to serve as a demonstration of the functionality of the framework, while the documentation can be found here, and the main repository is here.
Reserved Elements
#breadcrumbs
#content
HTTP Requests
{
"breadcrumbs": [],
"callbacks": [],
"errors": [],
"html": {} or "" or [],
"notifications": [],
"redirect": "",
"title": "",
}
{"breadcrumbs": []}
{"callbacks": []}
{"errors": []}
{"html": ""}
or {"html": []}
or {"html": {}}
HTML
<div>
<strong>Foo:</strong> <span id="foo"></span>
</div>
JSON
{
"html": {
"foo": "bar"
}
}
Make request
Foo:
HTML
<div>
<strong>Spam:</strong> <span id="spam"></span>
</div>
JSON
{
"html": [
{
"id": "spam",
"content": "eggs"
}
]
}
Make request
Spam: