pasteque/paste/templates/paste/index.html

28 lines
911 B
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% load filters %}
{% load i18n %}
{% load compress %}
{% block content %}
<h1>Paf'Py</h1>
<p>Et Paf.</p>
<p>Ce « pastebin-like » sutilise en ligne de commande, soit avec <tt>curl</tt> :</p>
<div class="highlight"><pre><span></span>curl {{ request.build_absolute_uri }} <span class="o">-F</span>hello.py<span class="o">=</span>@hello.py
</pre></div>
<p>Mais le mieux est de l'utiliser avec une fonction <tt>bash</tt> :</p>
<div class="highlight"><pre><span></span>pafpy<span class="o">()</span>
<span class="o">{</span>
curl {{request.build_absolute_uri}} -F<span class="s2">&quot;</span><span class="nv">$1</span><span class="s2">=@</span><span class="nv">$1</span><span class="s2">&quot;</span>
<span class="o">}</span>
</pre></div>
Demo :
<div class="highlight"><pre><span></span>$ pafpy test.py
{{request.build_absolute_uri}}D91F1CA
</pre></div>
{% endblock %}