Create a link to a given (A)LCN.
Return a HTML link to the given (A)LCN.
# File lib/webgen/tag/link.rb, line 11 11: def call(tag, body, context) 12: if (dest_node = context.ref_node.resolve(param('tag.link.path').to_s, context.dest_node.lang)) 13: context.dest_node.node_info[:used_meta_info_nodes] << dest_node.alcn 14: context.dest_node.link_to(dest_node, param('tag.link.attr').merge(:lang => context.content_node.lang)) 15: else 16: log(:error) { "Could not resolve path '#{param('tag.link.path')}' in <#{context.ref_node}>" } 17: context.dest_node.flag(:dirty) 18: '' 19: end 20: rescue URI::InvalidURIError => e 21: raise Webgen::RenderError.new("Error while parsing path '#{param('tag.link.path')}': #{e.message}", 22: self.class.name, context.dest_node, context.ref_node) 23: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.