Tips and examples of the Writeup text processing language
If a variable does not exist, then printing it produces an error. There are several methods of getting around this.
- We will start by setting
$hasval
to Has a Value, and not setting $noval
- Our test line will be:
Testing ($noval) and ($hasval)
Submitted by siteadmin on Sat, 07/12/2014 - 22:06
Writeup version 2.51 has just been released on
As well as a few minor bug fixes, there is a new option: -c --close
which will silently close open tags at the end of a document.
This is important for the Drupal integration project since teasers are usually created by chopping off much of the document, and so possibly creating some unclosed structures.
Version 1.5 of the Drupal project integrates with Writeup vers
Submitted by siteadmin on Tue, 07/08/2014 - 13:26
A factory function creates other functions.
Submitted by siteadmin on Tue, 07/08/2014 - 13:25
- Whole-line assignments
$x=value
Note that any quotations will not be removed but included as part of the value
- Inline assigments using $set
$set $x=value
- Inline assigments using $set
$set $x="value"
with value in quotations
- Inline assigments using $setval
$setval $x=value
with or without quotations
- If the assigned value does not contain variables that can be evaluated, then all three methods produce identical answers.
A. the assigned value is a single variable
$a=A-value