Back Forward About HTML Fragment rules
 

SysAdmin category
  1. About 
  2. New 
  3. HTML 
  4. Pages & Classes 
  5. History 
  6. 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.

CautionFor 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 sections in flow actions and harnesses 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 Guardrails landing page to assess guardrail compliance, and use the Rule Security Analyzer to check for security vulnerabilities.

Where referenced

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.

Access

Use the Records Explorer to list all HTML fragment rules available to you.

Category

HTML fragment rules are instances of the Rule-HTML-Fragment rule type. They are part of the Technical category.

Definition guardrails
Related topics About JavaServer Page tags
Application Guardrails landing page
About the Rule Security Analyzer
Standard rules Atlas — Standard HTML Fragment rules

Technical category
Help System home pageHelp Home