X-Git-Url: https://git.ladys.computer/Shrine-XSLT/blobdiff_plain/e56ab0f26f35e32120971057b6db350175672c90..b165654fb546b6262512b33a590b2dacf00eb92c:/README.markdown diff --git a/README.markdown b/README.markdown index 0abeeb6..00dd2b5 100644 --- a/README.markdown +++ b/README.markdown @@ -100,10 +100,21 @@ There’s an example `feed.atom` provided so you can see what this (``) element of the template, as will `@lang` and `@xml:lang`. You can use this to help configure page‐specific styling. -- You can insert content into the `` of the template by setting - `@slot="shrine-head"` on the appropriate elements. For example, one - might customize the title of a page like - `My Title | My Cool Shrine`. +- You can use the `@slot` attribute with a few special values to insert + content in various places :— + + - `@slot="shrine-head"` will place the content into the `` of + the resulting document. This is especially useful for ``, + `<meta>`, and `<style>` elements. + + - For `shrine-header` and `shrine-footer`, there are `-before` and + `-after` slot names which will place content into the beginning or + ending of the shrine header or footer, respectively. + + - You can define your own slots with `<slot>` in templates, headers, + and footers; this will enable a corresponding `@slot` name + beginning with `shrine-template-slot-`, `shrine-header-slot-` or + `shrine-footer-slot`, respectively. - If you delete files from `sources/`, the corresponding files in `public/` will **not** be deleted and will need to be manually