Skip to content

Instantly share code, notes, and snippets.

Im trying to use boltforms,
if i follow the example and include a form
{{ boltforms('anonymous-comments') }}
in a template which also extends my base template i get:
Twig_Error_Runtime in Template.php (mysite/vendor/twig/twig/lib/Twig/Template.php) line 230:
An exception has been thrown during the rendering of a template
("A form of the name "anonymous-comments" has already been created.") in "contact.twig" at line 5.
import asyncdispatch, asynchttpserver
type SomeObj = object
someData: string
proc manageUiCallback(req: Request): Future[void] {.async.} =
var res = ""
# This callback wants to access someObj somehow!
res.add someObj.someData
Date: Fri, 19 May 2000 10:18:03 -0400 (EDT)
From: Doug Sauder <doug@penguin.example.com>
To: =?iso-8859-1?Q?J=FCrgen_Schm=FCrgen?= <schmuergen@example.com>
Subject: =?iso-8859-1?Q?Die_Hasen_und_die_Fr=F6sche?=
Message-ID: <Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE
Die Hasen und die Fr=F6sche
@enthus1ast
enthus1ast / gist:81f67b21a6bec8e9646b6673636d8651
Created April 1, 2016 14:19
peg is not matching the whole header.
# Extract of the testfile:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 44 61 74 65 3A 20 46 72 69 2C 20 31 39 20 4D 61 Date: Fri, 19 Ma
00000010 79 20 32 30 30 30 20 31 30 3A 31 38 3A 30 33 20 y 2000 10:18:03
00000020 2D 30 34 30 30 20 28 45 44 54 29 0D 0A 46 72 6F -0400 (EDT)..Fro
00000030 6D 3A 20 44 6F 75 67 20 53 61 75 64 65 72 20 3C m: Doug Sauder <
00000040 64 6F 75 67 40 70 65 6E 67 75 69 6E 2E 65 78 61 doug@penguin.exa
00000050 6D 70 6C 65 2E 63 6F 6D 3E 0D 0A 54 6F 3A 20 3D mple.com>..To: =