FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   export html template
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: export html template  (Read 611 times)
heliodrop

WWW
export html template
« on: May 7th, 2004, 3:05pm »

hi,
it would be great if we have the possibility of making an editable template to customize the html when exporting applets.
 
maybe something like that
(ie: with special tags between {}):
Code:
<html>
<head>
<title>{APPLETCODE} : Built with Processing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<BODY BGCOLOR="#666666" text="#FFFFFF" link="#CCCC00" vlink="#CCCC00" alink="#999900">
<center>
  <table width="400" border="0" cellspacing="0" cellpadding="10">
    <tr>
 <td> </td>
    </tr>
    <tr>
 
 <td>{APPLET}</td>
    </tr>
    <tr>
 <td> </td>
    </tr>
    <tr>
 <td><a href="{APPLETCODE}.pde"><font face="Arial, Helvetica, sans-serif" size="2">Source code</font></a></td>
 
    </tr>
    <tr>
 <td><font size="2" face="Arial, Helvetica, sans-serif">Built with <a href="http://processing.org">Processing</a></font></td>
    </tr>
  </table>
</center>
</body>
</html>

 
or maybe a more detailed APPLET PART
(ie: for adding a progressbar)
Code:
<applet code="{CODE}" archive="{ARCHIVE}" width={WIDTH} height={HEIGHT}>
  <param name="progressbar" value="true">
  <param name="progresscolor" value="#404040">
</applet>

 
I don't know how you generate the html files when exporting, but it's surely something that you can modify as you want.
 
narain


Re: export html template
« Reply #1 on: May 7th, 2004, 5:00pm »

It's been suggested. This facility is planned for the "big" release (as fry keeps calling it; I assume it's v1.0 non-alpha non-beta).
 
heliodrop

WWW
Re: export html template
« Reply #2 on: May 7th, 2004, 5:17pm »

thanks narain
and sorry for the duplicate.
°~°
 
fry


WWW
Re: export html template
« Reply #3 on: May 7th, 2004, 5:42pm »

on May 7th, 2004, 5:00pm, narain wrote:
It's been suggested. This facility is planned for the "big" release (as fry keeps calling it; I assume it's v1.0 non-alpha non-beta).

 
nah, it'll still be alpha.. it'll break lots of things and add lots of new features (multiple files, export to application, more flexible sketchbook)
 
narain


Re: export html template
« Reply #4 on: May 8th, 2004, 11:48am »

Cool. Sounds good!
ETA?
 
fry


WWW
Re: export html template
« Reply #5 on: Jun 22nd, 2004, 2:52am »

now implemented for megabucket (still no eta on release for that though.. i'm going as fast as i can)
 
inside 'lib' is a file called 'applet.html' that has the template for things. you can also copy this applet.html to your sketch folder, and it'll be used for export for just that sketch.
 
Pages: 1 

« Previous topic | Next topic »