[phpwebapp-commits] CVS: web_app/doc to_do.txt,1.2,1.3 changes_3.txt,1.1,1.2 changes_1.txt,1.2,1.3 c
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-14 14:45:51
|
Update of /cvsroot/phpwebapp/web_app/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13284/doc Modified Files: to_do.txt changes_3.txt changes_1.txt changes.txt WebApp.txt ToDo.XML.txt Log Message: Index: to_do.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/to_do.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** to_do.txt 13 Jul 2004 16:15:20 -0000 1.2 --- to_do.txt 14 Jul 2004 14:45:41 -0000 1.3 *************** *** 1,21 **** * Parse the templates using an XML parser. ! - Handle XML errors (in templates) as gracefully as possible. ! + In case of error, when popping the templates from the stack, ! call also the corresponding function (e.g. end_IF()), ! according to the type of the template. ! ! - The xml parser has problems with entities (e.g. < & etc.) ! Why? - Fix the problems with <Repeat>. + Why the navigation vars work even without a <RSNavig> template? ! - class.WebPage.php::print_dbg_messages() ! Output debug messages using EditableRS and templates. ! ! - Use css styles to the other debug messages as well. ! ! - Substitute ereg_replace() with preg_replace(). - Use 'tidy' or any shell scripts for converting from HTML to XHTML. --- 1,10 ---- * Parse the templates using an XML parser. ! - The xml parser has problems with entities (e.g. < & etc.). Why? - Fix the problems with <Repeat>. + Why the navigation vars work even without a <RSNavig> template? ! - Fix some errors with JS. - Use 'tidy' or any shell scripts for converting from HTML to XHTML. *************** *** 27,36 **** <img>, etc. - - Improve the output, so that the XHTML page that is generated - is well-formed, well-indented, etc. - + fix some problems with the indentation - + don't output <br></br>, but <br/> (similar for other empty tags) - + don't apply indentation for tags <pre>, <xmp>, etc. - - Use the new framework with the other web applications (app1, app2, app3, documentation, top10, smewapp, ilar, kushtetuta, --- 16,19 ---- *************** *** 38,41 **** --- 21,26 ---- conversion tool(s)). + - Replace the old edit_menu with the new one. + - Reformat all the files (automatically with emacs). Index: changes_3.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/changes_3.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changes_3.txt 13 Jul 2004 16:15:20 -0000 1.1 --- changes_3.txt 14 Jul 2004 14:45:41 -0000 1.2 *************** *** 191,198 **** in the same folder with the <WebBox>. If it exists there, then the framework includes a line like this in the <head> of the page: ! <script language='javascript' src='path/to/box_id.js'></script> Similarly, for the CSS code, the framework includes a line like ! this: <link type='stylesheet' src='path/to/box_id.css' ....> in the <head> of the page. --- 191,198 ---- in the same folder with the <WebBox>. If it exists there, then the framework includes a line like this in the <head> of the page: ! <script type='text/javascript' language='javascript' src='path/to/box_id.js'></script> Similarly, for the CSS code, the framework includes a line like ! this: <link type='stylesheet' src='path/to/box_id.css' .... /> in the <head> of the page. Index: changes_1.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/changes_1.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** changes_1.txt 16 Jul 2003 09:27:59 -0000 1.2 --- changes_1.txt 14 Jul 2004 14:45:41 -0000 1.3 *************** *** 524,528 **** the given message after the page is rendered. The comment is optional. You can also print a debug message like this: ! print "$comment: $msg<br>\n"; but the output of this statement may be mixed with the HTML code and sometimes it may break the page, so the first --- 524,528 ---- the given message after the page is rendered. The comment is optional. You can also print a debug message like this: ! print "$comment: $msg<br />\n"; but the output of this statement may be mixed with the HTML code and sometimes it may break the page, so the first Index: changes.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/changes.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** changes.txt 13 Jul 2004 16:15:20 -0000 1.3 --- changes.txt 14 Jul 2004 14:45:41 -0000 1.4 *************** *** 10,13 **** --- 10,38 ---- ------------------------------------------------------------------- ------------------------------------------------------------------- + * Added the tag <example>. It can be used like this: + + <example style="border: 1px solid #eeeeee;"> test + <b>test</b> + {{test}} + <Include SRC="{{content_html}}" /> + </example> + + It is converted by the framework to an <xmp> element, like this: + + <xmp style="border: 1px solid #eeeeee;"> test + <b>test</b> + {{test}} + <Include SRC="{{content_html}}" /> + </xmp> + + The content of the element is copied verbatim, no variable replacement + or other processing is done. Even the white-space is preserved and + the overall indentation of the generated page does not touch the + original indentation of this element. + + Also, the framework preserves the original white-space and indentation + for the xhtml tags <pre> and <xmp>, however their contents are processed + for template variables and framework tags. + ------------------------------------------------------------------- Index: WebApp.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/WebApp.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WebApp.txt 11 Aug 2003 16:17:52 -0000 1.3 --- WebApp.txt 14 Jul 2004 14:45:41 -0000 1.4 *************** *** 124,129 **** developer. Maybe it could be enforced if the template processor didn't allow absolute paths inside the templates, like this: ! <img src="/images/image1.png">, and required the usage of variables ! like this: <img src="{{IMG_URL}}image1.png">, which would force the developer to declare the constant IMG_URL in 'const.Paths.php'. ?) --- 124,129 ---- developer. Maybe it could be enforced if the template processor didn't allow absolute paths inside the templates, like this: ! <img src="/images/image1.png" />, and required the usage of variables ! like this: <img src="{{IMG_URL}}image1.png" />, which would force the developer to declare the constant IMG_URL in 'const.Paths.php'. ?) Index: ToDo.XML.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/ToDo.XML.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ToDo.XML.txt 4 Aug 2003 12:06:13 -0000 1.3 --- ToDo.XML.txt 14 Jul 2004 14:45:41 -0000 1.4 *************** *** 9,14 **** <Attrib name="attr2" default="val1"/> <!--# the template of the tag #--> ! attr1='{{attr1}}'<br> ! attr2='{{attr2}}'<br> Tag Body: <xmp> {{ElementContent}} </xmp> --- 9,14 ---- <Attrib name="attr2" default="val1"/> <!--# the template of the tag #--> ! attr1='{{attr1}}'<br /> ! attr2='{{attr2}}'<br /> Tag Body: <xmp> {{ElementContent}} </xmp> *************** *** 98,100 **** (to convert a query result into HTML), the <TagDefinition> can be used to display XML content (to transform an XML content to HTML). ! </xmp> \ No newline at end of file --- 98,100 ---- (to convert a query result into HTML), the <TagDefinition> can be used to display XML content (to transform an XML content to HTML). ! </xmp> |