Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 419 Bytes
metadata:
title: Custom objects from file
short title: Import
documentation: "https://docassemble.org/docs/functions.html#objects_from_file"
example start: 2
example end: 3
---
modules:
- docassemble.base.util
---
code: |
fishes = objects_from_file("fishes.yml")
---
mandatory: true
question: |
Fish summary
subquestion: |
% for fish in fishes:
${ fish } has
${ fish.scales } scales.
% endfor