API

API

Tags

Tag Description Attributes
_template Imports the current file into a _slot within the template file [file name], [variable name], src
_slot Used within a template file as an entry point for the imported file -
_var Used within a template file to be replaced by a variable taken from _template [variable name], default
_import Imports a component [file name], src
_script Creates a script tag linking to the bundled script [file name], src
_style Creates a link tag linking to the bundled css file [file name], src

Default directory layout

| empty-keystone-project
--| .git/
--| assets/
--| components/
--| pages/
--| src/
--| styles/
--| templates/
--| keystone.config.js
--| package.json
--| package-lock.json