{% capture python_code %}
{% include_relative _code/bayesian_phone_example/code.py %}
{% endcapture %}

capture stores everything between the tags into a variable instead of outputting it immediately

https://shopify.github.io/liquid/basics/introduction/

  • objects
  • tags
  • filters

objects are content and within double curly braces

tags are logic and control flow and are within curly + %

filters use and are with double curlys or variable assignment and the change the output

This site uses Just the Docs, a documentation theme for Jekyll.