Skip to main content

3 docs tagged with "Output"

View all tags

Date and Time Output Classes

The humandate and humantimeperiod classes in Moodle are designed to render timestamps and time periods in a human-readable format. These classes provide functionality to display dates as "Today", "Yesterday", "Tomorrow", and apply alert styling if the date is near the current date.

Output API

The Output API is responsible for visual aspects of Moodle content. This page explains how renderers, renderables, themes and templates all work together.

Templates

A guide to the features and use of Mustache templating in Moodle.