package stog
Module Stog.TmplSource
Default templates.
get_template_file stog doc file returns absolute filename of the given template filename. If file is relative and implicit then the file is looked up the stog include directories. If file is relative and not implicit (i.e. it starts with . or ..), it is concatenated to the document source file directory. Else (the filename is absolute), it is returned as is.
Source
val read_template_file :
Types.stog ->
Types.doc ->
?depend:bool ->
?raw:bool ->
?loc:Xtmpl.Types.loc ->
string ->
Types.stog * Xtmpl.Rewrite.tree listread_template_file stog doc file returns the content of the given template filename, after calling get_template_file to get the final filename.
Source
val get_template :
Types.stog ->
?doc:Types.doc ->
contents ->
string ->
Types.stog * Xtmpl.Rewrite.tree listSource
val get_template_doc :
Types.stog ->
?doc:Types.doc ->
contents ->
string ->
Types.stog * Xtmpl.Rewrite.doc