pastebin.pug
– Clean Pastebin pastes ¶
View source code on GithubEmbed pastes¶
mixin pastebin(id)
- if ("alt" in attributes)
- alt = attributes.alt;
- delete attributes.alt;
- else
- alt = true;
iframe(src=`https://pastebin.com/embed_iframe/${id}`
width="100%"
height="315")&attributes(attributes)
- if (alt)
| Your browser does not support iframes.
-
+pastebin
(id)¶ Insert a paste from Pastebin.
Arguments: - id (string) – Paste identificator, corresponds to some letters and numbers located at the end of a paste url. For example, if the url is https://pastebin.com/DHa6btr5, the identificator is
DHa6btr5
.
- id (string) – Paste identificator, corresponds to some letters and numbers located at the end of a paste url. For example, if the url is https://pastebin.com/DHa6btr5, the identificator is
Usage¶
Input
+pastebin("DHa6btr5")(width="100%" height="315")
Output
<iframe width="100%" height="315" src="https://pastebin.com/embed_iframe/DHa6btr5"></iframe>
Render