Documentation
¶
Overview ¶
Package render centralizes rendering of template text with runtime values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
Input describes a render operation. Text is template text, Values are data, and Interactsh is optional source-level marker handling.
type MapInput ¶
type MapInput struct {
Source Values
Data Values
// Values is the evaluation context used while rendering Source.
Values Values
// Interactsh and InteractURLs carry source-level Interactsh allocations.
Interactsh URLSource
InteractURLs []string
}
MapInput describes a map render operation. Source values are template text. Data values are terminal data that override Source and are not rendered.
type MapResult ¶
MapResult contains the complete value map after Source rendering and Data overlay, plus any Interactsh URLs allocated while rendering Source values.
func RenderMap ¶
RenderMap renders Source values as template text, overlays Data values, and returns a complete value map. Data keys are skipped while rendering so they cannot produce DSL or Interactsh side effects.
It is intended for already-expanded payload iteration maps, not raw payload definitions containing lists.
type Result ¶
Result is the terminal rendered data and any Interactsh URLs allocated while rendering template text.
func Render ¶
Render evaluates template text with values and returns rendered data.
Interactsh markers in Text are source-level render effects and are allocated before DSL helper evaluation, so helper transforms apply to generated URLs. Values are data and rendered output is terminal data; neither is rescanned for DSL expressions or Interactsh markers.