Closed avril-affine closed 8 years ago
{{ custom_object.name }}
should be {{ custom_object['name'] }}
. Without serialization/deserialization support of custom objects, I'd suggest just sticking to the default types supported in yaml: lists, dicts, strings, none/null, ints, floats
Also not sure how to workout the YAML variables. I've used them in the base template
eg.
---
body_class: page
...
<body class="{{ body_class }}">
And them tried to change the var in a page, but had the same result above
Ok, in my case I was using version 3.3.3 But YAML support is currently on master only
pip uninstall Cactus
pip install https://github.com/eudicots/Cactus/archive/master.zip
Installing from master worked. Thanks.
I'm trying to use the yaml object variable feature. I have the test file in pages/test.html as:
The resulting page is: