Spark - reading child options
Hi All
I have defined the following DSL
I can use the following to get the value of root_url...
Reading the docs I thought I could get the value of layout with....
but this always returns
nil
despite the fact the value is configured. I've read the Spark docs and I'm getting myself confused (easily done). Any pointers as to what I'm doing wrong? Many thanks in advance.4 Replies
Can I see the DSL?
is
read
an entity or a section?The DSL is....
Entities are stored and retrieved differently
You'd ask for the entities inside of the crud section
You can derive that all with
Spark.InfoGenerator
, which defines functions you can look at in iex etc.Thanks @ZachDaniel - I'll give it a go - appreciate the pointer.