2017-09-29

(sph lang itml eval shtml)

evaluate inline code expressions and translate itml to shtml

import name

(sph lang itml eval shtml)

exports

itml-shtml-eval

procedure

signature

a itml-state ->

list list -> sxml

itml-shtml-eval-file

procedure

signature

a b ... ->

itml-shtml-eval-port

procedure

signature

a b ... ->

itml-shtml-eval-string

procedure

signature

a b ... ->

itml-shtml-false

variable

itml-shtml-lines

procedure

signature

a ->

list integer -> list

description

receives a list of expressions that eventually become separate lines.

rules:

* html inline elements are wrapped with <p>

* html block elements are left as is

* list contents become <p> contents

* other elements are wrapped with <p>

* on the first level of the given list, lists that

do not correspond to html tags are spliced.

these lists are assumed to contain result elements

from dynamic code evaluation

sph-lang-itml-eval-shtml-description

variable

tags: guile documentation library scheme sph-lib computer sph-lang-itml-eval-shtml