UNPKG

@osaedasia/oresume

Version:

A user-friendly library for generating complete Single Page Applications (SPAs)

2 lines (1 loc) 650 B
import{StringTemplateParsingStep as e}from"./pipeline/StringTemplateParsingStep.js";import{AttributeValueProcessingStep as s}from"./pipeline/AttributeValueProcessingStep.js";import{DirectContentProcessingStep as t}from"./pipeline/DirectContentProcessingStep.js";import{HtmlParsingContext as r}from"./HtmlParsingContext.js";class i{_services;_steps;constructor(){this._services=new Set,this._steps=[new e,new s,new t]}registerServices(...e){for(const s of e)this._services.has(s)||this._services.add(s)}run(e,...s){const t=new r(this._services,e,...s);for(const e of this._steps)e.execute(t);return t.toParsedHtml()}}export{i as HtmlPipelineService};