Struct crowbook::ResourceHandler [] [src]

pub struct ResourceHandler { /* fields omitted */ }

Resource Handler.

Its task is to make sure that some resource (image, link) is available for the book and to list images used in Markdown files so they can be used for the book

Methods

impl ResourceHandler
[src]

[src]

Creates a new, empty Resource Handler

[src]

Turns on mapping for image files

Argument: an offset (should be book.root)

[src]

Sets base64 mode for image mapping

If set to true, instead of returning a destination file path, map_image will include the image as base64

[src]

Add a local image file and get the resulting transformed file name

Add a match between an original file and a dest file

Get a destination link from an original link

Tell whether a file name is a local resource or net

[src]

[src]

Add a path offset to all linked urls and images src

Trait Implementations

impl Debug for ResourceHandler
[src]

[src]

Formats the value using the given formatter.