--- /dev/null
+<?php
+use CRM_AfformHtml_ExtensionUtil as E;
+
+class CRM_AfformHtml_Page_HtmlEditor extends CRM_Core_Page {
+
+ public function run() {
+ // Example: Set the page-title dynamically; alternatively, declare a static title in xml/Menu/*.xml
+ CRM_Utils_System::setTitle(E::ts('HtmlEditor'));
+
+ // Example: Assign a variable for use in a template
+ $this->assign('currentTime', date('Y-m-d H:i:s'));
+
+ parent::run();
+ }
+
+}
--- /dev/null
+<h3>This new page is generated by CRM/AfformHtml/Page/HtmlEditor.php</h3>
+
+{* Example: Display a variable directly *}
+<p>The current time is {$currentTime}</p>
+
+{* Example: Display a translated string -- which happens to include a variable *}
+<p>{ts 1=$currentTime}(In your native language) The current time is %1.{/ts}</p>
--- /dev/null
+<?xml version="1.0"?>
+<menu>
+ <item>
+ <path>civicrm/admin/afform/html</path>
+ <page_callback>CRM_AfformHtml_Page_HtmlEditor</page_callback>
+ <title>HtmlEditor</title>
+ <access_arguments>administer CiviCRM</access_arguments>
+ </item>
+</menu>