I have probably a beginners question, which however I can't resolve.
Bootstrap skin has skin.conf in directory /Bootstrap and uses for its
images a separate skin.conf in /Images.
Now, I am trying to parse [ImageGenerator] [[week_images]] in
/Images/skin.conf to find the image names with the following code:
#set $count = 0
#set $size = len($ImageGenerator.week_images)
#for $image in $ImageGenerator.week_images
#if $count % 2 == 0
<div class="row mb-1">
#end if
<div class="col-md-6 d-flex justify-content-center">
<a href="big_images/${image}.png" data-toggle="lightbox">
<img src="images/${image}.png" alt=""
class="img-responsive" style="max-width:100%;">
</a>
</div>
#if $count % 2 == 1 or $count == ($size - 1)
</div>
#end if
#set $count = $count + 1
#end for
The code should work, except that it can't find 'ImageGenerator'.
How can I get it to work?
Appreciate any help, thank you.
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/25d2375e-dbcc-43fe-92c6-332ce8991ce9n%40googlegroups.com.