Source: site.view [edit]
Function name: siteviewform
Arguments: ctype,module,usecache
Description: Template form for view page
Page type: snippet
Render function:  
Module: siteutil

Page source:

<form action="/webl/WubHub_SaveFunction" method="post">
      <table>
        <tbody>
        <tr>
          <td>Function name: </td>
          <td>%name%</td>
        </tr>
        <tr>
          <td>Arguments: </td>
          <td>%arglist%</td>
        </tr>

        <tr>
          <td>Description: </td>
          <td>%description%</td>
        </tr>
        <tr>
          <td>Page type:</td>
          <td>%ctype%</td>
        </tr>
        <tr>
          <td>Render function:&nbsp;&nbsp; </td>
          <td>%render%</td>
        </tr>
        <tr>
          <td>Module:</td>
          <td>%module%</td>
        </tr>
      </tbody>
    </table>

   <p>Page source:</p>
   <p><pre>%exec%</pre></p>

        <table>
        <tr>
          <td>
          </td>
          <td>
<webl>
   var u = (wubinfo.user ? "");
   var s = "";
   if (u != nil) then
      s = `
             <input name="module" value="` + u + `" type="hidden"/>
             <input name="name" value="%name%" type="hidden" size="30"/>
             <input name="arglist" value="%arglist%" type="hidden" size="30"/>
             <input name="ctype" value="%ctype%" type="hidden" size="30"/>
             <input name="render" value="%render%" type="hidden" size="30"/>
             <input name="tags" value="%tags%" type="hidden" size="30"/>
             <input name="flags" value="%flags%" type="hidden" size="30"/>
             <input name="test" value="%test%" type="hidden" size="30"/>
             <input name="description" value="%description%" type="hidden" />
             <input name="exec" value="%exec%" type="hidden" />
             <input name="version" value="%version%" type="hidden" size="30"/>
             <input name="created" value="%created%" type="hidden" size="30"/>
             <input name="createdby" value="%createdby%" type="hidden" size="30"/>
             <input name="modified" value="%modified%" type="hidden" size="30"/>
             <input name="modifiedby" value="%modifiedby%" type="hidden" size="30"/>
             <input name="oldtags" value="" type="hidden" size="30"/>
             <input name="oldflags" value="" type="hidden" size="30"/>
             <input type="submit" value="Copy to your module">`;
   end;
   s;
</webl>
          </td>
        </tr>
   </table>
</form>