package ppx_css

  1. Overview
  2. Docs
A ppx that takes in css strings and produces a module for accessing the unique names defined within

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=e60e31aadd820b131f7f05827f369164564400bd4fd51c199d066abf7e68753f

doc/src/ppx_css.inline_css/testing_strategy.ml.html

Source file testing_strategy.ml

1
2
3
4
5
6
7
8
9
10
11
open! Core

type t = string Reversed_list.t ref

let name = "testing-strategy"
let initialize () = Or_error.return (ref Reversed_list.[])
let update : t -> string -> unit = fun t s -> t := s :: !t

module For_testing = struct
  let dump_testing_state t = Reversed_list.rev !t |> String.concat_lines
end
OCaml

Innovation. Community. Security.