Example 1: Using Nested Parameters Collections

The example below shows how nested parameters collections work in Flamingo IDE. Code on the desktop site page:

<html>
 <body>
   <div id="content">
     <h1>Header 1</h1>
     <h2>Header 2</h2>
   </div>
 </body>
</html>

Defining nested parameters in the parameters collection in Flamingo IDE:

{
 headline: {
   xpath: '//div[@id="content"]',
   parameters: {
     h1: './/h1',
     h2: './/h2'
   }
 }
}

Now you can use newly defined nested parameters in template/snippet text to get values of H1 and H2 tags:

<!--{= $.headline.h1 }-->

<!--{= $.headline.h2 }-->