Stog.EngineSourceRewrite engine.
Exception raised when a cache file of a loaded plugin could not be open.
type 'a level_fun = | Fun_stog of Types.stog XR.env -> Types.stog -> Types.Doc_set.t -> Types.stog| Fun_data of 'a XR.env ->
(Types.stog * 'a) ->
Types.Doc_set.t ->
Types.stog * 'a| Fun_stog_data of (Types.stog * 'a) XR.env ->
(Types.stog * 'a) ->
Types.Doc_set.t ->
Types.stog * 'aA function associated to a level. All functions take in parameter the environment, the stog and structure and the list of documents to rewrite. They return the new stog structure. Some function (Fun_data, Fun_stog_data) also handle an additional data structure: the callbacks in the environment also handle it, and the function returns it with the stog structure.
A structure containing data and functions associated to levels. Contains also the module name.
type stog_state = {st_stog : Types.stog;st_modules : (module Module) list;st_docs : Types.Doc_set.t;}val generate :
?use_cache:bool ->
?gen_cache:bool ->
?default_style:XR.tree list ->
?only_docs:string list ->
Types.stog ->
(module Module) list ->
unitGenerate the target files, with the following steps:
Types.doc.doc_out field in the destination file. @use_cache reuse documents from cache, default is true @gen_cache update cache, default is trueBuild the final file where the given document will be generated.
Build the final url of the given document.
val get_in_args_or_env :
'a ->
'a XR.env ->
XR.attributes ->
Stog.Types.Xml.name ->
'a * XR.tree listget_in_args_or_env env args s returns the value associated to s in args of else return the result of get_in_env env s.
get_path env returns the path associated to "doc-path" in env.
Same as get_path but first looks for "doc-path" attribute in the given args.
val apply_stog_data_env_doc :
(Types.stog * 'a) ->
(Types.stog * 'a) XR.env ->
Types.doc_id ->
Types.stog * 'a