This is a WIP list of things that either tripped me up, or needed extra explanation and research before I really understood them. This may serve as a starting point for tutorial style articles, or additions and improvements to Spike's documentation.
- Includes - the fact that you can use includes as a simple component because inludes receive their parent scope variables
- Conditionals -
if
statements in reshape silently fail if there is a stray space at the end of the line - Loops - difference between
of
andin
- Local functions - using them as 'mixins' - showing a couple of examples would be great. Need to use {{{ }}} 3 curlies rather than 2
- Markdown - Why do I need to require and use something like
marked
whenmarkdown-it
is already integrated intoreshape-content
? See the (FAQ)[https://spike.readme.io/docs/faqs#section-markdown-processing-locals]
- Plugin config - tutorial/walkthrough on hooking up DatoCMS or Contentful for example and using features (transforms, json, etc.)
- spike watch - not firing on ignored files (like template files or partials)
- Using and importing .env file to store tokens / secrets etc. (this is pretty common, but may still be worth documenting)
- Reshape responsive
<picture>
element - Dato image helper (grab the asset URL and drop it in front of image resources)