06/10/2007 18:26:22

Txt2tags plugin for nanoblogger

Here is a quick test for a txt2tags plugin for nanoblogger. The code is pretty straightforward:

  # NanoBlogger plugin to render txt2tags format entries
  # /usr/share/nanoblogger/plugins/entry/format/txt2tags.sh
  # Released in the public domain - Gabriel Kerneis
  
  TXT2TAGS="/usr/bin/txt2tags"
  TXT2TAGS_OPTS="-i - -o - --mask-email -H -q -t xhtml "
  
  # nb_msg "$plugins_textformataction `basename $nb_plugin` ..."
  NB_EntryBody=$(echo "$NB_EntryBody" | ${TXT2TAGS} ${TXT2TAGS_OPTS})

Lovely, n'est-ce pas ?

Any comment? Send an email to <blog (a) kerneis info> (obsfuscated by txt2tags).


Posté par Gabriel | Lien | Catégories Bidouillage | Votez pour cet article sur Wikio

Envoyer un commentaire (par mail).