2013-12-28 17:57:11 +00:00
|
|
|
created: 20131228163141555
|
2020-03-30 09:55:37 +00:00
|
|
|
modified: 20200330105334133
|
2015-02-24 16:41:16 +00:00
|
|
|
tags: Macros [[Core Macros]]
|
|
|
|
title: makedatauri Macro
|
2013-12-28 17:57:11 +00:00
|
|
|
type: text/vnd.tiddlywiki
|
2014-09-10 23:06:19 +00:00
|
|
|
caption: makedatauri
|
2013-12-28 17:57:11 +00:00
|
|
|
|
2015-02-24 16:41:16 +00:00
|
|
|
The <<.def makedatauri>> [[macro|Macros]] takes a piece of text and an associated ContentType, and returns a corresponding [[data URI|Data URI]].
|
2013-12-28 17:57:11 +00:00
|
|
|
|
2015-02-24 16:41:16 +00:00
|
|
|
<<.var makedatauri>> is used to implement the <<.mlink datauri>> macro.
|
2013-12-28 17:57:11 +00:00
|
|
|
|
2015-02-24 16:41:16 +00:00
|
|
|
!! Parameters
|
2013-12-28 17:57:11 +00:00
|
|
|
|
2015-02-24 16:41:16 +00:00
|
|
|
;text
|
|
|
|
: The text to be converted to a data URI
|
|
|
|
;type
|
|
|
|
: The ContentType of the text
|
2020-03-30 09:55:37 +00:00
|
|
|
;_canonical_uri
|
|
|
|
: The optional ''_canonical_uri'' address of the content
|
2013-12-28 17:57:11 +00:00
|
|
|
|
2015-02-24 16:41:16 +00:00
|
|
|
<<.macro-examples "makedatauri">>
|