Hello World

Hello World example. We only need two files to achive this. In this example the theme is in folder /theme/demo/helloworld.

First tell Buto which is the default theme.

  /config/settings.yml
  
theme: demo/helloworld

In theme settings registrate the page plugin wf/doc and set default class and method. This settings tells Buto that www.helloworld.com is the same page as www.helloworld.com/p/home.

  /theme/demo/helloworld/config/settings.yml
  
plugin_modules:
  p:
    plugin: 'wf/doc'
default_class: p
default_method: home

The page home.yml.

  /theme/demo/helloworld/page/home.yml
  
content:
  -
    type: span
    innerHTML: Hello World