Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1293 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Need to pass format options to kid serialization

Reported by: engie Owned by: anonymous
Priority: normal Milestone: 1.0.2
Component: Kid Version: 1.0
Severity: normal Keywords:
Cc:

Description

I wanted to set strip_lines=false as a format for the serialisation of a kid template (for information on formatting options, see  http://kid-templating.org/guide.html#id4). I can't see a way this can be done at the moment. My hack to get around this was to alter kidsupport.py to that attached. I've created a new output type, html-straight, that gets special cased in kidsupport.py to add a formatting option turning off blank line stripping.

These options should be made available through the @expose decorator or similiar.

Attachments

kidsupport.py Download (739 bytes) - added by engie 12 years ago.
A diff of my changes. Hacky hacky hacky

Change History

Changed 12 years ago by engie

A diff of my changes. Hacky hacky hacky

comment:1 Changed 12 years ago by jorge.vargas

yes I have had some similar problems in the past TG doesn't exposed most of kid options.

comment:2 Changed 12 years ago by alberto

  • Status changed from new to closed
  • Resolution set to fixed

Applied at [2847]. Thanks :)

Alberto

Note: See TracTickets for help on using tickets.