NewNotes creates a new Notes controller. It panics if the necessary templates are not parsed.
(app *app.App)
| 33 | // NewNotes creates a new Notes controller. |
| 34 | // It panics if the necessary templates are not parsed. |
| 35 | func NewNotes(app *app.App) *Notes { |
| 36 | return &Notes{ |
| 37 | app: app, |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | var notesPerPage = 30 |
| 42 |