Creating a new templated page in WriteFreely
Here's how you might create a new page for users in WriteFreely.
In this example, assume you want to create a new Import page based on the current Export page template:
- create a copy of
templates/user/export.tmpl
namedtemplates/user/import.tmpl
- change
define "export"
on the first line todefine "import"
(the name here should match the filename betweentemplates/user/
and.tmpl
- duplicate the
viewExportOptions()
handler func inaccount.go
, changing it accordingly - add the import page route in
routes.go
Get future updates via RSS and ActivityPub: @devlog@matt.writefreely.dev.