<?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 Salvatore Laisa on Medium]]></title>
        <description><![CDATA[Stories by Salvatore Laisa on Medium]]></description>
        <link>https://medium.com/@moebiusmania?source=rss-8865fbced2e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*p62txY5LJvpY7ruF.jpeg</url>
            <title>Stories by Salvatore Laisa on Medium</title>
            <link>https://medium.com/@moebiusmania?source=rss-8865fbced2e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:21:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@moebiusmania/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 install Ghost 1.0-beta locally]]></title>
            <link>https://medium.com/moebiusmania/how-to-install-ghost-1-0-beta-locally-32724950db18?source=rss-8865fbced2e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/32724950db18</guid>
            <category><![CDATA[beta]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[platform]]></category>
            <category><![CDATA[ghosts]]></category>
            <dc:creator><![CDATA[Salvatore Laisa]]></dc:creator>
            <pubDate>Sun, 11 Jun 2017 10:31:47 GMT</pubDate>
            <atom:updated>2017-06-11T18:53:00.363Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D5lanLaDSMqGeVc2dz8EQQ.png" /><figcaption>Yep, Casper got a little revamp too!</figcaption></figure><blockquote>A quick tip<strong> for developers</strong>!</blockquote><p>After months of hard work the team behind the <a href="https://ghost.org/">Ghost blogging/publishing platform</a> has finally released <a href="https://dev.ghost.org/1-0-0-beta/">the first beta version</a> of the 1.0 iteration of their software… and it’s simply amazing!</p><p>If you are a <strong>developer</strong> (<em>or a very techy curious…</em>) and you want to test it out on your machine for theme development or just to have a look, here’s the few steps necessary to quickly a local installation, first of all you need:</p><ul><li><strong>Node.js 6: </strong>the previous versions of Ghost (<em>0.11.x</em>) didn’t worked at all under v7 and since latest Node.js 8 caused some issues to me in the past few days I have reverted to Node.js 6 on my machine (<em>remember that this version is LTS</em>)</li><li><strong>Yarn</strong>: suggested but not necessary, it’s a bit faster and easier than NPM and the Ghost team supports it too 😎. But if you don’t want to install for whatever reason remember that everything done with Yarn can be done with NPM as well.</li></ul><p>Now we are ready to install the all-new-and-super-handy Ghost CLI, this is a new tools that streamlines a lot of process regarding Ghost workflow, including installing or updating a Ghost instance, so hands on the terminal and type:</p><pre>$ yarn global add ghost-cli</pre><p>now you can access to the ghost utilities command on the terminal!</p><p>To install a local version of Ghost we first need to create an empty folder and then use the CLI to work for us (<em>assuming you are on MacOS terminal or Linux Bash or Windows 10 with Linux Bash</em>):</p><pre>$ mkdir mylocalghost<br>$ cd mylocalghost<br>$ ghost install local</pre><p>with these 3 commands you will have your local copy of Ghost 1.0beta running on you machine in a matter of minutes! Just open your browser on <strong>localhost:2368</strong> and you will see it with your own eyes!</p><h4>A few notes before you go hacking your new Ghost installation</h4><p>As a CLI tool, you can type</p><pre>$ ghost --help</pre><p>to have a list of available commands, you may noticed that “local” is not mentioned, if you dont add this flag the CLI will try to install Ghost as in production environment giving you some headache.</p><p>How did I discovered that? Here’s a tip…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nxJx3jDydu__64PPrFvgjA.png" /><figcaption>Don’t be afraid to ask the community!</figcaption></figure><p>So, yes, there is a <a href="https://ghost.slack.com/">Ghost Slack channel</a> if you want to reach the community, and as you can see usually they help you if you ask, <strong>just don’t be afraid</strong>!</p><p>And one really last note, beside using the CLI to <strong>start/stop</strong> your local Ghost instance, avoid to manually delete the instance folder but rather use</p><pre>$ ghost uninstall</pre><p>this will do a much nicer clean of the folder and data!</p><p>Happy hacking with the <strong>all new Ghost 1.0</strong>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32724950db18" width="1" height="1" alt=""><hr><p><a href="https://medium.com/moebiusmania/how-to-install-ghost-1-0-beta-locally-32724950db18">How to install Ghost 1.0-beta locally</a> was originally published in <a href="https://medium.com/moebiusmania">Moebiusmania</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welcome Polymer 2 (and the Web Components spec v1)]]></title>
            <link>https://medium.com/moebiusmania/welcome-polymer-2-and-the-web-components-spec-v1-39bb558074c0?source=rss-8865fbced2e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/39bb558074c0</guid>
            <category><![CDATA[web-components]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[polymer]]></category>
            <dc:creator><![CDATA[Salvatore Laisa]]></dc:creator>
            <pubDate>Fri, 19 May 2017 08:42:42 GMT</pubDate>
            <atom:updated>2017-06-07T14:14:46.877Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ck0l7mCnbHZyNivV9YOcYw.jpeg" /><figcaption><em>Cover photo by </em><a href="https://www.flickr.com/photos/derekbruff/12336187505/"><em>Dereck Bruff on Flickr</em></a></figcaption></figure><blockquote>Finally we can think of components as first class citizens on the web.</blockquote><p>After almost 2 years that we are working with, and <strong>heavily believing in</strong>, Web Components and Polymer, they have now reached one of the most important milestones: <strong>Polymer 2 is released, and is based on the v1 specification of Web Components</strong>!</p><p>What’s new with these version numbers?</p><h4>Web Components v1</h4><p>Lets start from the specification itself, first of all Web Components gets a shiny <strong>new logo</strong> and a <a href="https://www.webcomponents.org/">totally refreshed website</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*12D0xk7AmZNe-9JKh5pHWQ.png" /><figcaption>the new logo</figcaption></figure><p>This new website serves as an “<em>app-store</em>” for web components, no matter which library are you using, making easier for developers to share and discover almost any type of components.</p><p>The v1 spec is also getting the much deserved<strong> love from the browsers</strong>, with latest versions of Chrome and Safari fully supporting both the <a href="http://caniuse.com/#feat=custom-elementsv1">Custom Elements</a> and <a href="http://caniuse.com/#feat=shadowdomv1">Shadow DOM</a> specifications, while Firefox is in the works and Microsoft Edge is… considering.</p><p>On the code side, now developing a new Web Component is really easy on modern browser:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fbbcb340d077be6f6efc64e9fd56cdd/href">https://medium.com/media/2fbbcb340d077be6f6efc64e9fd56cdd/href</a></iframe><p>And it works out of the box! For backward compatibility (<em>read Internet Explorer</em>) you can just transpile this code to ES5 via Babel or similar tools.</p><p>For browsers that (<em>still</em>) do not support this specification or part of it, you can include in your page the <a href="https://github.com/webcomponents/webcomponentsjs#webcomponentsjs-v1-spec-polyfills">offical polyfill</a>, now enriched by a <strong>dynamic loader</strong> which will load only the polyfill that the browser really needs instead of all of them, saving precious bandwith!</p><h4>Polymer 2</h4><p>Thanks to huge progress made by the Web Components specification, Polymer is one of the first modern Javascript library that is <strong>shrinking</strong> in size and features on a new iteration!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ft6vNut_NDod6SfClNj75g.png" /><figcaption>Image by <a href="https://medium.com/u/644932fe4ae">carlo</a></figcaption></figure><p>This way Polymer 2 only adds the feature that are not part of the specification like: <strong>one-way data binding, properties observers, mixins, DOM helpers</strong> plus a set of handy <strong>CLI tools</strong>.</p><p>So how does a new Polymer component code looks like? Not so different from the standard one we have seen before…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05c07f76408fdeb4e9bf21f9c77b7c1a/href">https://medium.com/media/05c07f76408fdeb4e9bf21f9c77b7c1a/href</a></iframe><p>As you can see the Javascript definition is almost identical to the “pure specification” we have seen before, Polymer adds its small set of features and, as for v1, the declaration of the template as good-old HTML plus some binding expressions.</p><p>Combining Polymer 2, Web Component v1 and the new polyfill results in a very <strong>small footprint</strong> for the browsers since we are working with real standards!</p><p>If you want to learn more about Web Components v1 and Polymer 2 you can check this introduction from the latest Google I/O:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcuoZenpQveQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcuoZenpQveQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcuoZenpQveQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae09645b4ae9ac60231a6990e657f481/href">https://medium.com/media/ae09645b4ae9ac60231a6990e657f481/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39bb558074c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/moebiusmania/welcome-polymer-2-and-the-web-components-spec-v1-39bb558074c0">Welcome Polymer 2 (and the Web Components spec v1)</a> was originally published in <a href="https://medium.com/moebiusmania">Moebiusmania</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Polymer + Markdown + GitHub simple “CMS”]]></title>
            <link>https://medium.com/moebiusmania/polymer-markdown-github-simple-cms-596c468e3a8a?source=rss-8865fbced2e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/596c468e3a8a</guid>
            <category><![CDATA[content]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[polymer]]></category>
            <dc:creator><![CDATA[Salvatore Laisa]]></dc:creator>
            <pubDate>Sat, 25 Jun 2016 22:14:20 GMT</pubDate>
            <atom:updated>2016-12-13T07:55:44.538Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TCC9WS9VOmWWWTPmTkqExg.png" /></figure><blockquote>Easy things were hard, now that the hard things are easy (almost) nobody wants it anymore. :(</blockquote><p>Long time has passed since the days when it was <strong>difficult</strong> for me to build websites that my clients could edit without the need to call me.</p><p>It was the time around <strong>2005/2006</strong> and to tell you the truth, it wasn’t so easy for a lot of webdesigners, but fortunately the WordPress/CMS revolution was just around the corner…</p><p>A decade later so many things happened on the frontend side of the Web and we are so overwhelmed by the number of choices available when we need to make websites with content editable by other people (or in the end… just by us!) that it becamed difficult to have a <strong>simple</strong> solution for (very) <strong>simple</strong> projects/websites.</p><h4>A simple user case</h4><p>Let’s imagine you have to build a <strong>small</strong> websites or landing page, you want something fast to load and this is the main reason you may want to avoid a classic CMS (because we all know that static HTML pages are way faster than serve-side computed pages) and since you want just a single block of content to be editable, a database would be a waste of resources. Plus, it would be nice to host the website and manage its content for free.</p><h4>So, what do we need?</h4><p>Fortunately, just a couple of things</p><ul><li>A <strong>GitHub repo</strong></li><li><strong>Polymer</strong>, a WebComponents library from Google</li><li><strong>Marked-Element</strong> &amp; <strong>Juicy-Html</strong>, two components built on top of Polymer</li></ul><p>I suggest you to install the required library &amp; components via Bower so you can simply use this command:</p><pre>bower install polymer PolymerElements/marked-element juicy-html</pre><h4>Jump on a code editor</h4><p>First things fists, add this code on the &lt;head&gt; of your website</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/608a40d11d2d861ce71ebfe70043c91f/href">https://medium.com/media/608a40d11d2d861ce71ebfe70043c91f/href</a></iframe><p>Since Polymer it’s a library based on the new HTML specification of the Web Components we need to load a polyfill to make it works on all major browser. Today it’s fully supported only by Chrome, but things are getting better each day, so we won’t need the polyfill anymore sooner than what we think.</p><p>The last two lines imports the two components we have downloaded a few moments ago.</p><p>Now let’s create a new empty Html file that we will use for the content, since I’m feeling very creative, I will call it <strong>content.html</strong> . Inside this file we will use the &lt;marked-element&gt; that will parse and render a markdown content:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc0b65829c3a3a289e094a4ce88658b3/href">https://medium.com/media/fc0b65829c3a3a289e094a4ce88658b3/href</a></iframe><p>This is the basic use of the &lt;marked-element&gt; as it is described by <a href="https://elements.polymer-project.org/elements/marked-element">its documentation</a>. The text inside the script tag will be the markdown content we want to edit later.</p><p>Now we need to import this file inside our website, to do this we just need to add this tag on the desired html page:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/14558bd12f7e081c7da2a0b5f48b1c1b/href">https://medium.com/media/14558bd12f7e081c7da2a0b5f48b1c1b/href</a></iframe><p>Our code is finally complete!</p><h4>Publish &amp; edit</h4><p>We will use a <a href="https://pages.github.com/">GitHub page</a> to host our website, so inside our repo let’s create a new branch and call it <strong>gh-pages</strong> and push everything!</p><p>Check your GitHub page url to see these simple static-dynamic website published.</p><p>Now if we want to edit the content area of our website we just need to click on the “content.html” file from the GitHub repo UI , make some changes and make a commit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSPQol5BuVqM9IFXs_sYaA.png" /><figcaption>Editing the content.html file directly from the GitHub repo UI</figcaption></figure><p>Check again your website (<em>watch out for the browser cache!</em>).</p><h4>Cool! But I’m lazy and want some complete code</h4><p>You can see a live demo of this tutorial on (guess what!) a <a href="https://moebiusmania.github.io/poly-md-site/">GitHub page</a>, and obviously all the related code is available on the <a href="https://github.com/moebiusmania/poly-md-site">demo <strong>repo</strong></a>.</p><p>The template layout is provided by <a href="http://startbootstrap.com/template-overviews/clean-blog/">StartBootstrap</a>.</p><h4>But wait… there is Jekyll out there!</h4><p>I’m not even saying that Jekyll isn’t good or simple enough, my point with this article was to show <strong>another</strong> <em>editable-static-webpage</em> workflow that once setup give you the advantage of a fast loading website</p><h4>The downside</h4><p>The main downside of this approach is that loading external content and rendering new Html elements on the client side is <strong>extremely bad</strong> for SEO.</p><p><strong><em>Bottom note:</em></strong> this is my very first time writing a (technical) article in english, so please be kind in reporting typos and errors :-)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=596c468e3a8a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/moebiusmania/polymer-markdown-github-simple-cms-596c468e3a8a">Polymer + Markdown + GitHub simple “CMS”</a> was originally published in <a href="https://medium.com/moebiusmania">Moebiusmania</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>