nowdoc: Here document without variable expansion like PHP Nowdoc

[ bsd3, library, text ] [ Propose Tags ]

Please see the README on GitHub at https://github.com/YoshikuniJujo/nowdoc#readme


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.1.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), template-haskell [details]
License BSD-3-Clause
Copyright 2018 Yoshikuni Jujo
Author Yoshikuni Jujo
Maintainer PAF01143@nifty.ne.jp
Revised Revision 1 made by YoshikuniJujo at 2018-08-30T06:19:34Z
Category Text
Home page https://github.com/YoshikuniJujo/nowdoc#readme
Bug tracker https://github.com/YoshikuniJujo/nowdoc/issues
Source repo head: git clone https://github.com/YoshikuniJujo/nowdoc
Uploaded by YoshikuniJujo at 2018-08-29T06:34:44Z
Distributions LTSHaskell:0.1.1.0, NixOS:0.1.1.0, Stackage:0.1.1.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 3156 total (23 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-08-29 [all 1 reports]

Readme for nowdoc-0.1.0.3

[back to package description]

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! |  ]"