# Copyright (c) 2009 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: Macro.bunit,v 1.3 2011/12/06 02:57:23 nagler Exp $ WikiText(); [ '@b-def name=m_1 params= c1' => '', <<'IN' => <<'OUT', @b-def name=m_2 c2 @b-call name=m_2 IN

c2

OUT <<'IN' => <<'OUT', @b-def name=m_3 params="p3_1 p3_2 p3_3" c3@p3_1@p3_2@p3_2not@{p3_2}yes @p3_3 @/b-def @b-call name=m_3 p3_1=3.1 p3_2=3.2 IN

c33.13.2@p3_2not3.2yes

OUT <<'IN' => <<'OUT', @b-def name=m_4 params="p4_1 b_content" @h1 @p4_1 @p @b_content @/p @/b-def @b-call name=m_4 p4_1=hello1 good bye 1 @b-call name=m_4 p4_1=hello2 some content here @/b-call IN

hello1

good bye 1

hello2

some content here

OUT <<'IN' => <<'OUT', @b-def name=m_5 params="b_content" @div.m_5 @b_content @/div @/b-def @b-call name=m_5 wiki tags in b_content @strong are interpreted @/b-call IN
wiki tags in b_content are interpreted
OUT ];