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

Version Path
trenni-3.14.0 ext/trenni/tag.h
trenni-3.13.2 ext/trenni/tag.h
trenni-3.13.1 ext/trenni/tag.h
trenni-3.13.0 ext/trenni/tag.h
trenni-3.12.0 ext/trenni/tag.h
trenni-3.11.0 ext/trenni/tag.h
trenni-3.10.0 ext/trenni/tag.h
trenni-3.9.0 ext/trenni/tag.h
trenni-3.8.0 ext/trenni/tag.h
trenni-3.7.1 ext/trenni/tag.h
trenni-3.7.0 ext/trenni/tag.h
trenni-3.6.1 ext/trenni/tag.h
trenni-3.6.0 ext/trenni/tag.h
trenni-3.5.0 ext/trenni/tag.h
trenni-3.4.0 ext/trenni/tag.h
trenni-3.3.0 ext/trenni/tag.h
trenni-3.2.0 ext/trenni/tag.h
trenni-3.1.3 ext/trenni/tag.h
trenni-3.1.2 ext/trenni/tag.h
trenni-3.1.1 ext/trenni/tag.h