<%= current_node.name %>

<%= root_node.name %>

    <% def html_tree(node, current_node) if node==current_node ret = "
  • #{node.name}" else ret = "
  • #{node.name}" end unless node.children.empty? ret += "
      " + node.children.collect{|n| html_tree(n, current_node)}.join end return ret + "" end %> <%= root_node.children.collect{|n| html_tree n, current_node}.join %>

    This application is distributed under the GPL.

    Send all comments or suggestions to jonathantan86@hotmail.com.

    This is version 0.11 (Mar 14, 2006).
    Older versions: 0.1

<% current_node.sections.each do |s| if s.type == :code %>
<%= CGI.escapeHTML(s.content.to_a.collect{|s| ' '+s}.join.gsub("\t",'    ')) %>
<% elsif s.type == :comment %> <%= RedCloth.new("\n" + s.content + "\n").to_html %> <% elsif s.type == :folder %> <% elsif s.type == :link %> <% end end %>