nitc :: api_docdown
nitc :: APIDocdown
Docdown handler accept docdown as POST data and render it as HTMLnitc :: actors_injection_phase
Injects model for the classes annotated with "is actor" sonitc :: astbuilder
Instantiation and transformation of semantic nodes in the AST of expressions and statementsnitc :: commands_ini
FileServer
action, which is a standard and minimal file server
HttpRequest
class and services to create it
nitc :: i18n_phase
Basic support of internationalization through the generation of id-to-string tablesSerializable::inspect
to show more useful information
nitc :: modelbuilder
more_collections :: more_collections
Highly specific, but useful, collections-related classes.threaded
annotation
serialization :: serialization_core
Abstract services to serialize Nit objects to different formatsnitc :: serialization_model_phase
Phase generating methods (model-only) to serialize Nit objectsdeserialize_json
and JsonDeserializer
serialize_to_json
and JsonSerializer
nitc :: toolcontext
Common command-line tool infrastructure than handle options and error messagesnitc :: uml_module
Services for generation of a UML package diagram based on aModel
core :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Nitdoc specific Markdown format handling for Nitweb
module api_docdown
import api_model
import commands::commands_docdown
redef class NitwebConfig
# Specific Markdown processor to use within Nitweb
var md_processor: MarkdownProcessor is lazy do
var parser = new CommandParser(model, mainmodule, modelbuilder, catalog)
var proc = new CmdMarkdownProcessor(parser)
proc.decorator = new CmdDecorator(model)
return proc
end
end
redef class APIRouter
redef init do
super
use("/docdown/", new APIDocdown(config))
end
end
# Docdown handler accept docdown as POST data and render it as HTML
class APIDocdown
super APIHandler
redef fun post(req, res) do
res.html config.md_processor.process(req.body)
end
end
src/doc/api/api_docdown.nit:15,1--45,3