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

HTTP Requests

All potential key/value

{
    "breadcrumbs": [],
    "callbacks": [],
    "errors": [],
    "html": {} or "" or [],
    "notifications": [],
    "redirect": "",
    "title": "",
}
            

{"breadcrumbs": []}

{"callbacks": []}

{"errors": []}

{"html": ""} or {"html": []} or {"html": {}}

HTML
 <div id="content"></div>
JSON

    {
        "html": "Hello, world."
    }
                    
Make request
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:

{"notifications": []}

{"redirect": []}

{"title": []}