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/ppx_css.syntax/Ppx_css_syntax/String_constant/index.html

Module Ppx_css_syntax.String_constantSource

Sourcetype t = {
  1. css_string : string;
  2. string_loc : Ppxlib.location;
    (*

    Equivalent to where the "stylesheet" identifier is located from within the call to ppx_css. This is used to potentially give merlin information for MerlinTypeOf to know the type of the stylesheet function.

    *)
  3. delimiter : string option;
}

String_constant.t represents an OCaml string constant from ppxlib's AST.

from ppxlib's docs:

   Constant string such as ["constant"]
   [{delim|other constant|delim}].

   The location span the content of the string, without the delimiters. 
OCaml

Innovation. Community. Security.