Module HTML Templates
Your formatting rules. Your HTML design. Every generated post matches your site.
PENMAN lets you define HTML Templates for generated content — either by creating your own rules or by letting AI analyze your existing WordPress posts and building a template that matches your blog’s structure and design. When you publish, it’s always draft-first, with a full diff and revision history.
Auto-build a template from real posts.
Bring your own HTML schema and classes.
Autosave drafts + diffs before publish.
PENMAN analyzes your blog’s structure, so every new draft (or AI rewrite) follows the same layout: headings, sections, lists, callouts, and CSS classes — without manual cleanup.
Why it matters Less formatting chaos
Stop fighting HTML after AI generation
Most “AI content” fails in production because it doesn’t match your site’s markup and components. With templates, PENMAN generates content already shaped to your blog’s HTML schema and design system — so publishing is predictable, fast, and clean.
Enforce your headings, sections, callouts, and layout patterns across every post.
Make “good structure” the default: semantic headings, lists, tables, and readable blocks.
Every output goes through WordPress drafts and diffs — you approve before it goes live.
Two ways to build templates AI or your own definitions
Generate from AI — or write your own rules
You can create templates in two modes: Generate from AI (PENMAN analyzes your existing posts and infers the structure), or Create template (you define rules yourself).
Select an existing post. PENMAN analyzes the HTML structure and produces a reusable template so future articles “fit” your layout by default.
Define exactly which tags, heading hierarchy, and CSS classes should be used — including strict or minimal markup.
Mark one template as “default” so every generated draft uses the same formatting rules automatically.
Use different templates for different content types (e.g., technical vs editorial) without breaking design consistency.
Based on your UI, templates support both free-form rules and structured fields:
- Template name and description
- Formatting rules (tags, structure, classes, constraints)
- CSS classes (e.g.,
article-content,post-paragraph) - Heading styles (H2 main, H3 subsections, etc.)
- Formatting options (lists, tables, blockquotes, code blocks, images, callouts, sections)
- Semantic HTML + Accessibility focus
Enable Minimal Markup for clean output or enforce more structure with sections/callouts when your design relies on components.
How it works Template → draft → publish
Every template output is published safely
Templates aren’t just “formatting.” They’re part of the same WordPress workflow as your AI edits and internal linking: PENMAN generates the HTML to match the template, then saves changes as a draft and stores a full diff.
Build from AI (blog post analysis) or define your own formatting rules and classes.
Content Creator produces a draft already wrapped in your target markup (headings, lists, callouts, sections).
PENMAN writes the updated HTML into WordPress as a draft version — never a blind overwrite.
See exactly what changed (HTML + content) inside revision history. Publish only after approval.
Corporate posts, technical tutorials, comparison pages, “evergreen guides” — each can have a different layout, yet all remain consistent because the template governs structure and HTML output.
- Internal Linking: insert links without breaking design blocks
- AI Assistant: rewrite sections while preserving HTML schema
- SEO Workspace: analyze headings/links/images after generation
Add your own rules for tag usage, required sections, allowed classes, and heading hierarchy. Templates are meant to be “the contract” between AI output and your site design.
Make your blog’s HTML structure the default for AI.
Auto-generate templates from your existing posts, add your rules, and publish safely with drafts + diffs.