About HTML Fragment rules |
New | HTML | Pages & Classes | History | More... |
Use HTML fragment rules to define universally available HTML parts, such as style sheets and scripts, including JavaScript files. During stream processing, a JSP tag can insert this text into other HTML rule instances.
In contrast to text file rules, HTML fragment rules can contain JSP tags and so can produce dynamic content that depends on property values.
For highest quality and security, minimize the use of HTML fragment rules you create in application RuleSets. While HTML fragment rules are necessary for specific features, use of auto-generated section rules in flow action rules and harness rules is preferable when possible. Auto-generated rules may often provide better performance, greater security, greater levels of browser independence, and more consistent branding and styles than hand-crafted rules. If your application RuleSets contain HTML fragment rules, use the Application Preflight report to assess guardrail compliance, and use the Rule Security Analyzer to check for security vulnerabilities.
You can reference HTML fragment rules in several other rule types that contain editable HTML or XML text. Use the <pega:include > JSP tag in another rule to cause the system to incorporate the fragment rule HTML text at runtime.
Use the Rules Explorer to list all HTML fragment rules available to you.
HTML fragment rules are instances of the Rule-HTML-Fragment rule type. They are part of the Technical category.
guardrails, Rule Security Analyzer | |
About JavaServer Page
tags
About the Application Preflight tool |
|
Atlas — Standard HTML Fragment rules |