package stog

  1. Overview
  2. Docs
Static web site compiler, able to handle blog posts as well as regular pages or any XML document in general

Install

Dune Dependency

Authors

Maintainers

Sources

stog-1.1.0.tar.bz2
md5=03c4072037bf05666a249d02954396c3
sha512=299fdb7036c92bd5317726ed20f982123f57897e0d8611dfae383251a6d793e63d372c6628742412d803224a3155ab021f79550fada2e980c7d6179d90f8e43f

doc/stog.base/Stog_base/Misc/index.html

Module Stog_base.MiscSource

Utilities.

Sourceval string_of_file : string -> string

string_of_file filename returns the content of filename in the form of one string.

Sourceval file_of_string : file:string -> string -> unit

file_of_string ~file str creates a file named filename whose content is str.

Sourceval split_string : ?keep_empty:bool -> string -> char list -> string list

Separate the given string according to the given list of characters.

  • parameter keep_empty

    is false by default. If set to true, the empty strings between separators are kept.

Sourceval strip_string : string -> string

strip_string s removes all leading and trailing spaces from the given string.

Sourceval strip_blank_lines : string -> string

strip_blank_lines s works as strip_string, but only strips full blank lines, without touching spaces or tabulations.

Sourceval lowercase : string -> string

lowercase s lowers the case of the given string, including accentuated characters.

Sourceval list_chop : int -> 'h list -> 'h list

list_chop n l returns the n first documents of list l or the whole list if n >= List.length l.

Sourceval mkdir : string -> unit
Sourceval is_prefix : string -> string -> bool

is_prefix pattern s returns true if string s begins with pattern.

Sourceval list_remove_doubles : ?pred:('k -> 'k -> bool) -> 'k list -> 'k list

list_remove_doubles ?pred l remove doubles in the given list l, according to the optional equality function pred. Default equality function is (=).

Sourceval md5 : string -> string
Sourceval count_char : string -> char -> int
Sourceval encode_string : string -> string
Sourceval map_opt : ('a -> 'b) -> 'a option -> 'b option
Sourceval list_concat : ?sep:'a -> 'a list -> 'a list
Sourceval dot_to_svg : string -> string
Sourceval list_compare : ('a -> 'a -> int) -> 'a list -> 'a list -> int
Sourceval filename_extension : string -> string

filename_extension filename returns extension of filename or "" if there is no extension.

Sourceval safe_mkdir : string -> unit
Sourceval opt_of_string : string -> string option

opt_of_string s returns None if the string if empty (length is 0) or Some s.

Sourceval string_of_opt : string option -> string

string_of_opt s_opt returns the empty string if s_opt = None or s if s_opt = Some s.

Sourceval file_mtime : string -> float option

Return mdification time of the given file, or None if the file does not exist.

Sourceval path_under : parent:string -> string -> string

path_under ~parent file returns the path to file from parent.

Sourceval string_of_time : float -> string
OCaml

Innovation. Community. Security.