aya

command
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Render .amber files into .html

This function passes the files to build to their corresponding functions As far as I'm aware, Markdown has three possible filename extensions, but .md is the most common one known.

Build everything and store it on PUBDIR If boolean watch is true, it keeps on going every time you modify something.

Render .gcss files into .css

getVars returns list of variables defined in a text file and actual file content following the variables declaration. Header is separated from content by an empty line. Header is in YAML If no empty newline is found - file is treated as content-only.

globals returns list of global OS environment variables that start with AYA_ prefix as Vars, so the values can be used inside templates

Renders hypertext files expanding all variable macros inside it

$TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v1.0.1 2023-12-12 14:27:02+0000, yakumo_izuru Exp $

Renders markdown with the given layout into html expanding all the macros

Copy files as-is from source to destination If there are heavy files, the generation process can slow down

renameExt renames extension (if any) from oldext to newext If oldext is an empty string - extension is extracted automatically. If path has no extension - new extension is appended

Render expanding aya plugins and variables

run() executes a command or a script. Vars define the command environment, each aya var is converted into OS environment variable with AYA_ prefix prepended. Additional variable $AYA contains path to the aya binary. Command stderr(4) is printed to aya stderr(4), command stdout(4) is returned as a string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL