<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrea Bellotto on Medium]]></title>
        <description><![CDATA[Stories by Andrea Bellotto on Medium]]></description>
        <link>https://medium.com/@andreabellotto88?source=rss-106164bd3e8e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Y0t3QcltpaCUIhVK.</url>
            <title>Stories by Andrea Bellotto on Medium</title>
            <link>https://medium.com/@andreabellotto88?source=rss-106164bd3e8e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 11:54:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreabellotto88/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to use Plot in Vapor 3.0]]></title>
            <link>https://medium.com/@andreabellotto88/how-to-use-plot-in-vapor-3-0-404316ce24c0?source=rss-106164bd3e8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/404316ce24c0</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[plotswift]]></category>
            <category><![CDATA[vaporswift]]></category>
            <dc:creator><![CDATA[Andrea Bellotto]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 09:32:36 GMT</pubDate>
            <atom:updated>2019-12-09T14:55:59.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TcU-jsVrK0s9sl1Hf9XwKw.jpeg" /></figure><p>Well it’s my first article that I publish, so let me introduce myself:</p><p>I’m Andrea Bellotto, I’m a Swift Full Stack Developer (that sounds good 😍). <br>Yes, I think we can consider Swift suitable for full-stack development!</p><p>Frameworks like Vapor, Perfect or Kitura let us develop websites or APIs directly with Swift, and now I’m here to talk about a brand new beautiful library developed by <a href="https://medium.com/u/5486d7313999">John Sundell</a> called <strong>PLOT </strong>(<a href="https://github.com/JohnSundell/Plot">https://github.com/JohnSundell/Plot</a>). It’s a domain-specific language (DSL) for writing type-safe HTML, XML and RSS in Swift.</p><p>Here’s an example of how is easy write HTML code in Swift:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49bc4e4cda517e797ebd1c9dcf71b1c2/href">https://medium.com/media/49bc4e4cda517e797ebd1c9dcf71b1c2/href</a></iframe><p>returns:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab3bc10eaebc278699a8c8bc19261fe6/href">https://medium.com/media/ab3bc10eaebc278699a8c8bc19261fe6/href</a></iframe><p>How great is it??!</p><p>You can find the documentation about how to use it in his README.</p><p>The first question that I made when I read about this library is:</p><p><em>How can I use it inside my Vapor project?</em></p><p>Well it’s pretty simple, you only have to import this extension in your code, and the game is done!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7705d06e8dc4de7009e3cb1b8c1ea15f/href">https://medium.com/media/7705d06e8dc4de7009e3cb1b8c1ea15f/href</a></iframe><p>For now you have to include Leaf service to render the html content, so in configure.swift :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/775404ea3655395ac654ba872782e07b/href">https://medium.com/media/775404ea3655395ac654ba872782e07b/href</a></iframe><p>Now it’s time to show your wonderful HTML content built with Swift:</p><p>1- Inside a Controller:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d8182d59ca5e6ae0750d9d70733a438/href">https://medium.com/media/0d8182d59ca5e6ae0750d9d70733a438/href</a></iframe><p>2- Directly in routes.swift</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da43b39b5983ed344527c15d26083782/href">https://medium.com/media/da43b39b5983ed344527c15d26083782/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=404316ce24c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>