-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpose.tex
More file actions
167 lines (120 loc) · 3.09 KB
/
expose.tex
File metadata and controls
167 lines (120 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
%%% -*- coding; utf-8 -*-
\documentclass{beamer}
\usepackage{beamerthemesplit}
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[procnames]{listings}
\usepackage{color}
\usepackage{graphicx}
%\usetheme{classic} %sidebar}
%\usetheme{Singapore}
%\usetheme{shadow}
%\usetheme{Malmoe}
\usetheme{Rochester}
\title{MarkdownMail}
\author{Stéphane Blondon}
\date{\today}
\institute{Yaal}
\begin{document}
\definecolor{keywords}{RGB}{255,0,90}
\definecolor{comments}{RGB}{0,0,113}
\definecolor{red}{RGB}{160,0,0}
\definecolor{green}{RGB}{0,150,0}
\lstset{language=Python,
basicstyle=\ttfamily\small,
keywordstyle=\color{keywords},
commentstyle=\color{comments},
stringstyle=\color{red},
showstringspaces=false,
identifierstyle=\color{green},
procnamekeys={def,class}}
\frame{\titlepage}
%\section[Outline]{}
%\frame{\tableofcontents}
\section{Besoin}
\begin{frame}
\frametitle{Besoin}
2 contraintes :
\begin{itemize}
\item<1-> créer et maintenir des e-mails facilement
\item<2-> au rendu agréable pour l'utilisateur
\end{itemize}
\end{frame}
\section{Besoin}
\begin{frame}
\frametitle{Choix insatisfaisants}
3 choix possibles :
\begin{itemize}
\item<1-> mail txt uniquement : facile mais rendu basique
\item<2-> mail html uniquement : problème pour certains lecteurs de e-mail et antispam. Contraire à la norme
\item<3-> mail txt et html : difficulté de maintenance
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Solution}
MarkdownMail utilise un seul contenu, au format Markdown :
\begin{itemize}
\item<1-> verbatim pour la partie txt,
\item<2-> converti en html pour la partie html.
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Installation}
dans un virtualenv :
\begin{verbatim}
pip install markdownmail
\end{verbatim}
disponible en python 2 et 3
sous licence MIT
\end{frame}
\begin{frame}[fragile]
\frametitle{Utilisation}
\begin{lstlisting}
CONTENU = """
PyCon-fr 2016
=============
Infos diverses
--------------
Hop, une liste :
1. lieu : Rennes
2. date : du 13 au 16 octobre
3. merci aux orgas !
"""
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]
\frametitle{Utilisation}
\begin{lstlisting}
email = markdownmail.MarkdownMail(
from_addr='alice@example.org',
to_addr='bob@example.org',
subject='Conf Python',
content=CONTENU
)
email.send('localhost')
\end{lstlisting}
\end{frame}
\begin{frame}
\frametitle{Résultat}
Le rendu dans Roundcube
\begin{figure}[b]
\includegraphics[scale=0.5]{capture_roundcube.png}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{Quelques détails}
\begin{itemize}
\item Juste de la colle entre les bibliothèques Markdown et Envelopes
\item Intégrable facilement dans un service web, script indépendant, etc.
\item Pas conçu pour des e-mails fortement personnalisés
\item Pas de pièce jointe actuellement
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Page web}
\begin{center}
https://pypi.python.org/pypi/markdownmail
\end{center}
\end{frame}
\end{document}