bugZoneCheck - Bugs: bug #29972, IWBN to use a template for the...

 
 

bug #29972: IWBN to use a template for the HTML output

Submitter:  Fabien CHABANNE <chabannf>
Submitted:  Thu 27 May 2010 07:35:40 AM UTC
   
 
Category:  * publisher Severity:  Ordinary
Priority:  5 - Normal Item Group:  * Feature request
Status:  None Privacy:  Public
Assigned to:  chabannf Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 27 May 2010 12:49:25 PM UTC, comment #4: 

http://www.hokstad.com/mini-reviews-of-19-ruby-template-engines.html

should give you a good roundup of possible options.

Ollivier Robert <keltia>
Thu 27 May 2010 12:47:50 PM UTC, comment #3: 

HAML seems pretty good (and one of the most used in the Rails world), it should be pleasing to Python fans :-)

ERB (and Erubis) are still largely used as well (Erubis being a faster ERB) but these are embedded-code style templating engines (so handle with care).

Pure XML (or close) ones such as Amrita are not in vogue anymore.

Ollivier Robert <keltia>
Thu 27 May 2010 08:09:24 AM UTC, comment #2: 

Any specific template engine to suggest? It seems there are several in Ruby.

Stephane Bortzmeyer <bortzmeyer>
Group administrator
Thu 27 May 2010 08:07:17 AM UTC, comment #1: 

I'd recommend towards a template-based approach instead of putting puts() statements with embedded HTML everywhere.  XSS-protection would be easier to have that way.

Ollivier Robert <keltia>
Thu 27 May 2010 07:35:40 AM UTC, original submission:  

The HTML output should be a little more structured and controlled to prevents attacks like XSS.

Fabien CHABANNE <chabannf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bortzmeyer (Posted a comment)
  • -email is unavailable- added by keltia (Posted a comment)
  • -email is unavailable- added by chabannf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code