Module: DocTemplate

Defined in:
lib/doc_template.rb,
lib/doc_template/tags.rb,
lib/doc_template/document.rb,
lib/doc_template/template.rb,
lib/doc_template/tables/base.rb,
lib/doc_template/tags/pd_tag.rb,
lib/doc_template/tags/pv_tag.rb,
lib/doc_template/document_toc.rb,
lib/doc_template/tags/def_tag.rb,
lib/doc_template/tags/gls_tag.rb,
lib/doc_template/tags/helpers.rb,
lib/doc_template/tags/smp_tag.rb,
lib/doc_template/tables/agenda.rb,
lib/doc_template/tables/target.rb,
lib/doc_template/tags/base_tag.rb,
lib/doc_template/tags/link_tag.rb,
lib/doc_template/tags/task_tag.rb,
lib/doc_template/tables/section.rb,
lib/doc_template/tags/block_tag.rb,
lib/doc_template/tags/group_tag.rb,
lib/doc_template/tags/image_tag.rb,
lib/doc_template/tags/inset_tag.rb,
lib/doc_template/tags/latex_tag.rb,
lib/doc_template/tags/table_tag.rb,
lib/doc_template/tags/vocab_tag.rb,
lib/doc_template/tables/activity.rb,
lib/doc_template/tables/metadata.rb,
lib/doc_template/tags/expand_tag.rb,
lib/doc_template/tags/indent_tag.rb,
lib/doc_template/tags/source_tag.rb,
lib/doc_template/xpath_functions.rb,
lib/doc_template/tags/callout_tag.rb,
lib/doc_template/tags/columns_tag.rb,
lib/doc_template/tags/default_tag.rb,
lib/doc_template/tags/heading_tag.rb,
lib/doc_template/tags/section_tag.rb,
lib/doc_template/tags/dialogue_tag.rb,
lib/doc_template/tags/position_tag.rb,
lib/doc_template/tags/standard_tag.rb,
lib/doc_template/tags/materials_tag.rb,
lib/doc_template/tags/opt_break_tag.rb,
lib/doc_template/objects/toc_helpers.rb,
lib/doc_template/tags/page_break_tag.rb,
lib/doc_template/tags/vocabulary_tag.rb,
lib/doc_template/objects/toc_metadata.rb,
lib/doc_template/objects/base_metadata.rb,
lib/doc_template/tags/answer_space_tag.rb,
lib/doc_template/objects/agenda_metadata.rb,
lib/doc_template/objects/metadata_helpers.rb,
lib/doc_template/tables/material_metadata.rb,
lib/doc_template/tags/multiple_choice_tag.rb,
lib/doc_template/objects/activity_metadata.rb,
lib/doc_template/objects/material_metadata.rb,
lib/doc_template/objects/sections_metadata.rb,
lib/doc_template/tags/white_placeholder_tag.rb,
lib/doc_template/tables/foundational_metadata.rb,
lib/doc_template/tags/activity_metadata_type_tag.rb,
lib/doc_template/tags/core_content_objectives_tag.rb,
lib/doc_template/tags/image_student_worksheet_tag.rb,
lib/doc_template/tags/language_arts_objectives_tag.rb,
lib/doc_template/tags/table_preserve_alignment_tag.rb,
lib/doc_template/tags/activity_metadata_section_tag.rb

Defined Under Namespace

Modules: Objects, Tables, Tags Classes: Document, DocumentToc, Template, XpathFunctions

Class Method Summary collapse

Class Method Details

.context_typesObject



45
46
47
# File 'lib/doc_template.rb', line 45

def context_types
  @context_types ||= Array.wrap(config['contexts']).presence || DEFAULTS[:context_types]
end

.document_contextsObject



49
50
51
# File 'lib/doc_template.rb', line 49

def document_contexts
  @document_contexts ||= Array.wrap(config['document_contexts']).presence || DEFAULTS[:lesson_contexts]
end

.material_contextsObject



53
54
55
# File 'lib/doc_template.rb', line 53

def material_contexts
  @material_contexts ||= Array.wrap(config['material_contexts']).presence || DEFAULTS[:materials_contexts]
end

.sanitizerObject



57
58
59
# File 'lib/doc_template.rb', line 57

def sanitizer
  @sanitizer ||= config['sanitizer'].constantize
end