Custom Statements

Flamingo IDE allows creating custom template code statements to make the IDE more flexible for developers:

<!--{ CUSTOM STATEMENT }-->

where CUSTOM STATEMENT is a native JavaScript and Flamingo API code. Custom statement may have multiple lines of code.

Note

Although custom statement is JavaScript, JavaScript libraries linked on page are not accessible at this stage. For example, you can’t use jQuery here even though it’s used on page.

Usage Examples

Use the links below to see sample situations where custom statement can be used.

Example 1 :Assign XPath Results to JavaScript Variables

Shows how to assign XPath results to JavaScript variables and access them in a template.

Example 2 :Debugging Template Parameters

Shows how to use built-in browser functions to display debug information in console.