Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

v.0.2.0

Choose a tag to compare

@fahmiirsyadk fahmiirsyadk released this 04 Dec 16:49
· 55 commits to main since this release

Core Changes:

  • now config file data .dust.yml accessible on every layout page
  • add custom tag element & custom attribute
  • add inject function to inject file string to the page

Example

(** tag *)
let heading = H.custom_tag("comp-heading")
(** attribute *)
let dataTheme = A.custom_attr("data-theme")

heading [
  dataTheme "dark"
] (H.text "heading") 

(** returned to => <comp-heading data-theme="dark">heading</comp-heading> *)