nowdoc

Here document without variable expansion like PHP Nowdoc

https://github.com/YoshikuniJujo/nowdoc#readme

Version on this page:0.1.0.3
LTS Haskell 22.14:0.1.1.0@rev:1
Stackage Nightly 2024-03-28:0.1.1.0@rev:1
Latest on Hackage:0.1.1.0@rev:1

See all snapshots nowdoc appears in

BSD-3-Clause licensed by Yoshikuni Jujo
Maintained by [email protected]
This version can be pinned in stack with:nowdoc-0.1.0.3@sha256:cfffba73e137249948a6088fe92498c8060a57576a251d456686c76d24aa9014,1457

Module documentation for 0.1.0.3

nowdoc

Simplest here document. Only two transformation.

  • remove head newline if exist
  • remove one space from ‘|’, space, space, …, ‘]’
hello = [nowdoc|
abc
def
ghi
|]

is

hello = "abc\ndef\nghi\n"

,

hello = [nowdoc|hello|]

is

hello = "hello"

and

hello = [nowdoc|
hello | ]
world |  ]
! |   ]
|]

is

hello = "hello |]\nworld| ]\n! |  ]"

Changes

Changelog for nowdoc

Unreleased changes