Closed Bug 753781 Opened 14 years ago Closed 14 years ago

kuma: preview *new* articles with processed kumascript templates

Categories

(developer.mozilla.org Graveyard :: Editing, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: groovecoder, Unassigned)

References

Details

(Whiteboard: u=user c=wiki)

Because kumascript GETs a document from kuma to process templates, the "preview changes" feature doesn't work on *new* documents - i.e., until they are saved. AFAICT, we can fix this by: 1. Refactor kumascript to accept article content string instead of an article url 2. Preemptively save a document 3. ?
Blocks: 710728
Priority: -- → P2
Whiteboard: u=user c=wiki
Is this still a valid bug? I thought we had this working with POSTs to kumascript.
Previews are being process with Kumascript despite not being saved, so this is set. Worked by: 1. Creating template with this content: <%= $0 %> 2. Went to the "new doc" page, added content: {{Alert("Child8")}} And clicked "Preview", and "Child8" displayed in the preview.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.