A Word on Pragmas
One last area to explore in this chapter is pragmas. Pragmas might be a new concept to you, especially if you’re mostly familiar with JavaScript or other scripting languages where the concept of pragmas aren’t present.
Pragmas enable developers to control how code is compiled. They are typically used for two purposes: to call external files and to control the access of information. All pragmas start with the keyword use and are then followed by pragma-specific attributes.
WMLScript supports three types of pragmas:
access
meta
url
Table 10.2 summarizes these constructs.
Pragma | Description | Example |
---|---|---|
access | Enables a user to protect a file’s content. This pragma specifies which URLs can ... |
Get WAP 2.0 Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.