zazen

An article by Gaspard Bucher

parse zazen (textile for zena) and display content

  1. action
  2. ajax
  3. API
  4. classes
  5. common attributes
  6. conditions
  7. context
  8. dates
  9. display
    1. add_btn
    2. add_document
    3. admin_links
    4. comments_count
    5. content_lang
    6. design
    7. filter
    8. flash_messages
    9. h
    10. img
    11. javascripts
    12. mail_hide
    13. min / max
    14. search_box
    15. set
    16. show
    17. stat
    18. stylesheets
    19. summary
    20. text
    21. title
    22. uses_datebox
    23. zazen
    24. zena
  10. forms
  11. i18n
  12. meta
  13. SQLiss
  14. urls

parse zazen (textile for zena) and display content

  • publish Set whether to auto-publish node after save.
  • attr attribute to display
  • limit number of paragraphs to display
  • edit [true] display link for ajax edit
  • code (ruby,xml,...) code language
  • filter (html,css) remove html/css
see content_lang, publish, zena 1.0

Display an attribute and parse it with zazen firs (live edit) :

<r:zazen attr='text' live='true'/>

Display TextDocument code (chooses code lang from content-type):

<r:zazen attr='text' code='#{content_lang}'/>

Display an attribute that you know is C++:

<r:zazen attr='function' code='cpp'/>

next version of Zazen parser

By default, zazen rendering will forbid javascript, css, external links and external images. All of these can be enabled back through the ‘allow’ option.

<r:zazen attr='text' allow='links,images,css,javascript'/>

Do not allow ‘javascript’ unless you really have to and you know the content is safe or you will expose your site (and users) to XSS attacks.

Until the allow whitelisting is enabled, you can use filter to remove ‘html’ and or ‘css’:

<r:zazen attr='text' filter='html,css'/>