PENMAN

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.

Generate from AI

Auto-build a template from real posts.

Custom rules

Bring your own HTML schema and classes.

Safe to WP

Autosave drafts + diffs before publish.

Screenshot: HTML Templates
Your templates → generate → publish
Screenshot
HTML Templates UI
Templates can be set as default and applied automatically when generating articles.
Built for consistency

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.

Design consistency

Enforce your headings, sections, callouts, and layout patterns across every post.

Template-driven SEO

Make “good structure” the default: semantic headings, lists, tables, and readable blocks.

Zero-risk publishing

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).

Generate from AI

Select an existing post. PENMAN analyzes the HTML structure and produces a reusable template so future articles “fit” your layout by default.

Create template (manual)

Define exactly which tags, heading hierarchy, and CSS classes should be used — including strict or minimal markup.

Set as default

Mark one template as “default” so every generated draft uses the same formatting rules automatically.

Override per post

Use different templates for different content types (e.g., technical vs editorial) without breaking design consistency.

Template builder (what you can define)

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
Optional strictness

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.

1
Create or generate a template

Build from AI (blog post analysis) or define your own formatting rules and classes.

2
Generate content with the template

Content Creator produces a draft already wrapped in your target markup (headings, lists, callouts, sections).

3
Save to WordPress as draft (autosave)

PENMAN writes the updated HTML into WordPress as a draft version — never a blind overwrite.

4
Review diff + publish when ready

See exactly what changed (HTML + content) inside revision history. Publish only after approval.

Good for multi-template blogs

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.

Works with other modules
  • Internal Linking: insert links without breaking design blocks
  • AI Assistant: rewrite sections while preserving HTML schema
  • SEO Workspace: analyze headings/links/images after generation
Want stricter control?

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.

Next step

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.