Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit a22c122

Browse files
committed
Change link text for playground examples. (#339)
To be more in line with Flux commands; see metafacture/metafacture-core#509.
1 parent 68580f9 commit a22c122

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

README.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Does nothing. It is used for benchmarking in Catmandu.
170170
nothing()
171171
```
172172

173-
[Playground-Example](https://metafacture.org/playground/?example=nothing)
173+
[Example in Playground](https://metafacture.org/playground/?example=nothing)
174174

175175
##### `put_filemap`
176176

@@ -180,7 +180,7 @@ Defines an external map for [lookup](#lookup) from a file or a URL. Maps with mo
180180
put_filemap("<sourceFile>", "<mapName>", sep_char: "\t")
181181
```
182182

183-
[Playground-Example](https://metafacture.org/playground/?example=put_filemap)
183+
[Example in Playground](https://metafacture.org/playground/?example=put_filemap)
184184

185185
The separator (`sep_char`) will vary depending on the source file, e.g.:
186186

@@ -211,7 +211,7 @@ put_map("<mapName>",
211211
)
212212
```
213213

214-
[Playground-Example](https://metafacture.org/playground/?example=put_map)
214+
[Example in Playground](https://metafacture.org/playground/?example=put_map)
215215

216216
##### `put_rdfmap`
217217

@@ -224,7 +224,7 @@ put_rdfmap("<rdfResource>", "<rdfMapName>", target: "<rdfProperty>")
224224
put_rdfmap("<rdfResource>", "<rdfMapName>", target: "<rdfProperty>", select_language: "<rdfLanguageTag>")
225225
```
226226

227-
[Playground-Example](https://metafacture.org/playground/?example=put_rdfmap)
227+
[Example in Playground](https://metafacture.org/playground/?example=put_rdfmap)
228228

229229
##### `put_var`
230230

@@ -234,7 +234,7 @@ Defines a single global variable that can be referenced with `$[<variableName>]`
234234
put_var("<variableName>", "<variableValue>")
235235
```
236236

237-
[Playground-Example](https://metafacture.org/playground/?example=put_var)
237+
[Example in Playground](https://metafacture.org/playground/?example=put_var)
238238

239239
##### `put_vars`
240240

@@ -247,7 +247,7 @@ put_vars(
247247
)
248248
```
249249

250-
[Playground-Example](https://metafacture.org/playground/?example=put_vars)
250+
[Example in Playground](https://metafacture.org/playground/?example=put_vars)
251251

252252
#### Record-level functions
253253

@@ -259,7 +259,7 @@ Creates a field with a defined value.
259259
add_field("<targetFieldName>", "<fieldValue>")
260260
```
261261

262-
[Playground-Example](https://metafacture.org/playground/?example=add+field)
262+
[Example in Playground](https://metafacture.org/playground/?example=add+field)
263263

264264
##### `array`
265265

@@ -295,7 +295,7 @@ end
295295
call_macro("<macroName>"[, <dynamicLocalVariables>...])
296296
```
297297

298-
[Playground-Example](https://metafacture.org/playground/?example=call+macro)
298+
[Example in Playground](https://metafacture.org/playground/?example=call+macro)
299299

300300
##### `copy_field`
301301

@@ -305,7 +305,7 @@ Copies a field from an existing field.
305305
copy_field("<sourceField>", "<targetField>")
306306
```
307307

308-
[Playground-Example](https://metafacture.org/playground/?example=copy+field)
308+
[Example in Playground](https://metafacture.org/playground/?example=copy+field)
309309

310310

311311
##### `format`
@@ -340,7 +340,7 @@ Moves a field from an existing field. Can be used to rename a field.
340340
move_field("<sourceField>", "<targetField>")
341341
```
342342

343-
[Playground-Example](https://metafacture.org/playground/?example=move+field)
343+
[Example in Playground](https://metafacture.org/playground/?example=move+field)
344344

345345

346346
##### `parse_text`
@@ -374,7 +374,7 @@ paste("my.string", "~Hi", "a", "~how are you?")
374374
# "my.string": "Hi eeny how are you?"
375375
```
376376

377-
[Playground-Example](https://metafacture.org/playground/?example=paste)
377+
[Example in Playground](https://metafacture.org/playground/?example=paste)
378378

379379
##### `print_record`
380380

@@ -425,7 +425,7 @@ Removes a field.
425425
remove_field("<sourceField>")
426426
```
427427

428-
[Playground-Example](https://metafacture.org/playground/?example=remove+field)
428+
[Example in Playground](https://metafacture.org/playground/?example=remove+field)
429429

430430
##### `rename`
431431

@@ -435,7 +435,7 @@ Replaces a regular expression pattern in subfield names of a field. Does not cha
435435
rename("<sourceField>", "<regexp>", "<replacement>")
436436
```
437437

438-
[Playground-Example](https://metafacture.org/playground/?example=rename)
438+
[Example in Playground](https://metafacture.org/playground/?example=rename)
439439

440440
##### `retain`
441441

@@ -445,7 +445,7 @@ Deletes all fields except the ones listed (incl. subfields).
445445
retain("<sourceField_1>"[, ...])
446446
```
447447

448-
[Playground-Example](https://metafacture.org/playground/?example=retain)
448+
[Example in Playground](https://metafacture.org/playground/?example=retain)
449449

450450
##### `set_array`
451451

@@ -456,7 +456,7 @@ set_array("<targetFieldName>")
456456
set_array("<targetFieldName>", "<value_1>"[, ...])
457457
```
458458

459-
[Playground-Example](https://metafacture.org/playground/?example=set+array)
459+
[Example in Playground](https://metafacture.org/playground/?example=set+array)
460460

461461
##### `set_field`
462462

@@ -497,7 +497,7 @@ Deletes empty fields, arrays and objects.
497497
vacuum()
498498
```
499499

500-
[Playground-Example](https://metafacture.org/playground/?example=vacuum)
500+
[Example in Playground](https://metafacture.org/playground/?example=vacuum)
501501

502502
#### Field-level functions
503503

@@ -509,7 +509,7 @@ Adds a string at the end of a field value.
509509
append("<sourceField>", "<appendString>")
510510
```
511511

512-
[Playground-Example](https://metafacture.org/playground/?example=append)
512+
[Example in Playground](https://metafacture.org/playground/?example=append)
513513

514514
##### `capitalize`
515515

@@ -519,7 +519,7 @@ Upcases the first character in a field value.
519519
capitalize("<sourceField>")
520520
```
521521

522-
[Playground-Example](https://metafacture.org/playground/?example=capitalize)
522+
[Example in Playground](https://metafacture.org/playground/?example=capitalize)
523523

524524
##### `count`
525525

@@ -537,7 +537,7 @@ Downcases all characters in a field value.
537537
downcase("<sourceField>")
538538
```
539539

540-
[Playground-Example](https://metafacture.org/playground/?example=downcase)
540+
[Example in Playground](https://metafacture.org/playground/?example=downcase)
541541

542542
##### `filter`
543543

@@ -555,7 +555,7 @@ Flattens a nested array field.
555555
flatten("<sourceField>")
556556
```
557557

558-
[Playground-Example](https://metafacture.org/playground/?example=flatten)
558+
[Example in Playground](https://metafacture.org/playground/?example=flatten)
559559

560560
##### `from_json`
561561

@@ -591,7 +591,7 @@ Options:
591591
isbn("<sourceField>"[, to: "<isbnFormat>"][, verify_check_digit: "<boolean>"][, error_string: "<errorValue>"])
592592
```
593593

594-
[Playground-Example](https://metafacture.org/playground/?example=isbn)
594+
[Example in Playground](https://metafacture.org/playground/?example=isbn)
595595

596596
##### `join_field`
597597

@@ -601,7 +601,7 @@ Joins an array of strings into a single string.
601601
join_field("<sourceField>", "<separator>")
602602
```
603603

604-
[Playground-Example](https://metafacture.org/playground/?example=join+field)
604+
[Example in Playground](https://metafacture.org/playground/?example=join+field)
605605

606606
##### `lookup`
607607

@@ -670,7 +670,7 @@ Adds a string at the beginning of a field value.
670670
prepend("<sourceField>", "<prependString>")
671671
```
672672

673-
[Playground-Example](https://metafacture.org/playground/?example=prepend)
673+
[Example in Playground](https://metafacture.org/playground/?example=prepend)
674674

675675
##### `replace_all`
676676

@@ -680,7 +680,7 @@ Replaces a regular expression pattern in field values with a replacement string.
680680
replace_all("<sourceField>", "<regexp>", "<replacement>")
681681
```
682682

683-
[Playground-Example](https://metafacture.org/playground/?example=replace+all)
683+
[Example in Playground](https://metafacture.org/playground/?example=replace+all)
684684

685685
##### `reverse`
686686

@@ -700,7 +700,7 @@ sort_field("<sourceField>", reverse: "true")
700700
sort_field("<sourceField>", numeric: "true")
701701
```
702702

703-
[Playground-Example](https://metafacture.org/playground/?example=sort+field)
703+
[Example in Playground](https://metafacture.org/playground/?example=sort+field)
704704

705705
##### `split_field`
706706

@@ -710,7 +710,7 @@ Splits a string into an array and replaces the field value with this array.
710710
split_field("<sourceField>", "<separator>")
711711
```
712712

713-
[Playground-Example](https://metafacture.org/playground/?example=split+field)
713+
[Example in Playground](https://metafacture.org/playground/?example=split+field)
714714

715715
##### `substring`
716716

@@ -749,7 +749,7 @@ Deletes whitespace at the beginning and the end of a field value.
749749
trim("<sourceField>")
750750
```
751751

752-
[Playground-Example](https://metafacture.org/playground/?example=trim)
752+
[Example in Playground](https://metafacture.org/playground/?example=trim)
753753

754754
##### `uniq`
755755

@@ -759,7 +759,7 @@ Deletes duplicate values in an array.
759759
uniq("<sourceField>")
760760
```
761761

762-
[Playground-Example](https://metafacture.org/playground/?example=uniq)
762+
[Example in Playground](https://metafacture.org/playground/?example=uniq)
763763

764764

765765
##### `upcase`
@@ -770,7 +770,7 @@ Upcases all characters in a field value.
770770
upcase("<sourceField>")
771771
```
772772

773-
[Playground-Example](https://metafacture.org/playground/?example=upcase)
773+
[Example in Playground](https://metafacture.org/playground/?example=upcase)
774774

775775
##### `uri_encode`
776776

@@ -803,7 +803,7 @@ if <condition>
803803
end
804804
```
805805

806-
[Playground-Example](https://metafacture.org/playground/?example=reject)
806+
[Example in Playground](https://metafacture.org/playground/?example=reject)
807807

808808
### Binds
809809

@@ -817,7 +817,7 @@ do list(path: "<sourceField>")
817817
end
818818
```
819819

820-
[Playground-Example](https://metafacture.org/playground/?example=do+list)
820+
[Example in Playground](https://metafacture.org/playground/?example=do+list)
821821

822822
Only the current element is accessible in this case (as the root element).
823823

@@ -829,7 +829,7 @@ do list(path: "<sourceField>", "var": "<variableName>")
829829
end
830830
```
831831

832-
[Playground-Example](https://metafacture.org/playground/?example=do+list+with+var)
832+
[Example in Playground](https://metafacture.org/playground/?example=do+list+with+var)
833833

834834
#### `do list_as`
835835

@@ -864,7 +864,7 @@ do once()
864864
end
865865
```
866866

867-
[Playground-Example](https://metafacture.org/playground/?example=do+once)
867+
[Example in Playground](https://metafacture.org/playground/?example=do+once)
868868

869869
In order to execute multiple blocks only once, tag them with unique identifiers:
870870

@@ -902,7 +902,7 @@ end
902902
call_macro("<macroName>"[, <dynamicLocalVariables>...])
903903
```
904904

905-
[Playground-Example](https://metafacture.org/playground/?example=do+pu+macro)
905+
[Example in Playground](https://metafacture.org/playground/?example=do+pu+macro)
906906

907907
### Conditionals
908908

0 commit comments

Comments
 (0)