Page/view syntax Foundation
The page or view syntax is designed to mix imperative and declarative programming.
Xbase++ code sections - the imperative part - start with <% tag and end with %> tag. In addition, arbitrary expressions can easily be embedded into the declarative part of your view using the @(<expression>) inline syntax.
There also is a single-line syntax which marks a line in your view as code. Just use the @ marker as the first character of a line to mark it as a line of code.
The code below shows the previously outlined syntactical elements. The picture further down shows the result produced when requesting the CXP view from within your browser.
The general idea behind the different syntaxes is to increase readability of your code and markup. The following are considered best-practice rules for coding in CXP:
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.