Sha256: 7243aefebc5ade1dbfc951ea573777d68b55daff862e44978f5fbffd348ca5c1
Contents?: true
Size: 963 Bytes
Versions: 24
Compression:
Stored size: 963 Bytes
Contents
#pragma once #include "trenni.h" void Init_trenni_tag(); // Split a qualified name `namespace:name` into it's components. Return `[nil, name]` if no namespace is present. // Usage: namespace, name = Trenni::Tag.split(qualified_name) VALUE Trenni_Tag_split(VALUE self, VALUE name); // Append attributes to the buffer, e.g. {data: {id: 10}} => ' data-id="10"' VALUE Trenni_Tag_append_attributes(VALUE self, VALUE buffer, VALUE attributes, VALUE prefix); // Append a full tag with content to the buffer. VALUE Trenni_Tag_append_tag(VALUE self, VALUE buffer, VALUE name, VALUE attributes, VALUE content); // Same as append but returns the result. Slightly less efficient. VALUE Trenni_Tag_format_tag(VALUE self, VALUE name, VALUE attributes, VALUE content); // Improve performance of Trenni::Tag#write_opening_tag and #write_closing_tag VALUE Trenni_Tag_write_opening_tag(VALUE self, VALUE buffer); VALUE Trenni_Tag_write_closing_tag(VALUE self, VALUE buffer);
Version data entries
24 entries across 24 versions & 1 rubygems