Anatomy
The structure of a Lore application
The structure of a Lore application
This section describes the application structure.
This file represents a configuration that ultimately gets passed to a Model instance oflore-models. Lore Models
is the library that Lore uses for making AJAX requests, the interface for which is heavily inspired byBackbone.Model.
All models inherit their properties from config/models.js
. This means that your models themselves will often be empty, especially when you're only dealing with a single API that uses consistent conventions. The only time you should edit this file is if you need to set a behavior that is specific to this edit (something that is not shared by the other models). All shared behavior should go in config/models.js
.