#ifndef HERB_FOREIGN_CONTENT_ELEMENTS_H #define HERB_FOREIGN_CONTENT_ELEMENTS_H #include "parser.h" #include typedef struct { const char* name; foreign_content_kind_T kind; bool has_end_tag; bool html_only; } foreign_content_element_T; static const foreign_content_element_T FOREIGN_CONTENT_ELEMENTS[] = { <%- foreign_content_elements.each do |element| -%> { "<%= element.name %>", <%= element.raw_text? ? "FOREIGN_CONTENT_RAW_TEXT" : "FOREIGN_CONTENT_RCDATA" %>, <%= element.end_tag? %>, <%= element.html_only? %> }, <%- end -%> }; #define FOREIGN_CONTENT_ELEMENTS_COUNT (sizeof(FOREIGN_CONTENT_ELEMENTS) / sizeof(FOREIGN_CONTENT_ELEMENTS[0])) #endif