<?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 Bob Wassermann on Medium]]></title>
        <description><![CDATA[Stories by Bob Wassermann on Medium]]></description>
        <link>https://medium.com/@BobWassermann?source=rss-7505038a52c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RhStC3HwITeXJeN1JgjvVw.jpeg</url>
            <title>Stories by Bob Wassermann on Medium</title>
            <link>https://medium.com/@BobWassermann?source=rss-7505038a52c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:20:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BobWassermann/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[Simple templating with Grunt]]></title>
            <link>https://medium.com/@BobWassermann/simple-templating-with-grunt-1a55700982c0?source=rss-7505038a52c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a55700982c0</guid>
            <dc:creator><![CDATA[Bob Wassermann]]></dc:creator>
            <pubDate>Sat, 27 Dec 2014 13:53:37 GMT</pubDate>
            <atom:updated>2014-12-27T13:53:37.390Z</atom:updated>
            <content:encoded><![CDATA[<p>Last weeks I’ve been working on a small mobile webapp. I wanted this to be as simple as possible, no frameworks, no libraries (except jQuery, I’m sorry), no server-side languages or back-end capabilities. In the end I ended up using <a href="http://yeoman.io/">Yeoman</a> with the simple <a href="https://github.com/yeoman/generator-webapp">webapp template</a>, built and compiled by Grunt.</p><p>It just needed to be quick, small in size and efficient. After 20 commits things got cluttered. It reminded me of the days I used plain HTML and CSS for everything I built on the web. So I started searching for a Grunt plugin that does some very basic templating.</p><p>Eventually I ended up using a Grunt task called <a href="https://github.com/MathiasPaumgarten/grunt-bake">Grunt Bake</a>. Let me walk you through it. Please note that my setup might looks different since my Gruntfile is generated with Yeoman.</p><h3>Grunt Bake</h3><p>Open <strong>Terminal.app</strong>, and <em>cd</em> into your project directory.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fvid.me%2Fe%2FYAxw%3Fcard%3D1&amp;url=https%3A%2F%2Fvid.me%2Fe%2FYAxw%3Fautoplay%3D1%26amp%3Bloop%3D1%26amp%3Bmuted%3D1&amp;image=https%3A%2F%2Fd1wst0behutosd.cloudfront.net%2Fthumbnails%2F526691.jpg%3Fv1r1419414047&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=vid" width="640" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5e4c8db15d65c073a8bafa8b5cbfdb8/href">https://medium.com/media/e5e4c8db15d65c073a8bafa8b5cbfdb8/href</a></iframe><p>Install grunt-bake by typing the following sentence into Terminal.</p><pre>npm install grunt-bake --save-dev</pre><blockquote>--save-dev is used to add the package to your devDependencies.</blockquote><p>Now open <em>Gruntfile.js </em>(located in your project root) and search for the line containing <em>grunt.initConfig</em>, and add the following snippet. I added mine directly above the <em>watch</em> task. Since there is a task below, we’ll add a comma.</p><pre>bake: {<br>  build: {<br>    files: {<br>      &#39;app/index.html&#39; : &#39;app/base.html&#39;<br>    }<br>  }<br>}),</pre><blockquote>So, why two files? It’s pretty straight forward. The second file, <strong>app/base.html</strong>, will eventually be compiled/baked into the first file <em>— </em><strong>app/index.html</strong>.</blockquote><p>This is where the fun starts. Strip the head and footer part out of your <em>index.html </em>and put them into separate <em>head.html </em>and <em>footer.html </em>in a new folder called <em>includes.</em></p><blockquote>Pro-tip: make sure the <strong>&lt;body&gt;</strong><em> </em>and optionally <strong>container/wrapper</strong><em> </em>tags are in here too, so you won’t repeat yourself.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPo5aEyrs6xH74YcA2kAbQ.png" /></figure><p>Let’s pimp our <em>index.html</em> a bit, so it looks like the snippet below.</p><pre>&lt;!--(bake includes/head.html)--&gt;<br>  ...<br>&lt;!--(bake includes/footer.html)--&gt;</pre><p>Back to your <em>Gruntfile.js</em>, we set up the build for bake, pointing out to our two files, but we didn’t add it to our <em>watch </em>task<em> </em>yet, making developing without compiling nearly impossible. So let’s add it.</p><p>Search for <em>watch: {</em> in your <em>Gruntfile.js</em> and scroll down to <em>livereload: {</em> or whatever task is last for you. Include the snippet below and ignore the italics.</p><pre><em>},</em></pre><pre><br><strong>bake: {<br>  files: [&#39;&lt;%= config.app %&gt;/includes/**&#39;],<br>  tasks: [&#39;bake:build&#39;]<br>},</strong></pre><pre><br><em>livereload { ...</em></pre><p>And finally, add <em>bake:build</em> to your <em>build…</em></p><pre><em>grunt.task.run([<br>  &#39;clean:server&#39;,<br>  &#39;wiredep&#39;,</em><br>  <strong>&#39;bake:build&#39;,</strong><br><em>  ...<br>]);</em></pre><p>… and <em>run</em> tasks. Again, ignore the italics.</p><pre><em>grunt.registerTask(‘build’, [<br>  &#39;clean:dist&#39;,<br>  &#39;wiredep&#39;,</em><br>  <strong>&#39;bake:build&#39;,</strong><br><em>  ...<br>]);</em></pre><p><strong>That’s it. Have fun.</strong></p><p><em>Feel free to reach out to me for questions or suggestions. I’m still struggling a little bit with the folder structure and am not quite sure yet how I would handle multiple pages (in terms of folder structure). Also, if you want more like this, let me know.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a55700982c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unclutter your phone]]></title>
            <link>https://medium.com/@BobWassermann/unclutter-your-phone-4c1a63f06d7b?source=rss-7505038a52c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c1a63f06d7b</guid>
            <dc:creator><![CDATA[Bob Wassermann]]></dc:creator>
            <pubDate>Wed, 26 Mar 2014 10:36:15 GMT</pubDate>
            <atom:updated>2014-03-28T07:25:20.081Z</atom:updated>
            <content:encoded><![CDATA[<p>Six dots. I had 6 pages on my homescreen, there where so many apps on my iPhone and I couldn’t delete a single one. All apps appeared to have some emotional value to me — “I use that app each I’m on a festival” or “I installed it but are waiting on the next update”. It’s tough.</p><p>Since I installed iOS 7.1 my battery began to suffer, big time. I asked the forums, a clean install was the only way to fix this.</p><p>I could just wait for Apple to release an update, but I saw this as an opportunity.</p><p>After my clean install, all contacts, calendars and settings where synced over iCloud, the only thing missing were my Apps. I loved it. My iPhone was uncluttered again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qR347M3LSWYXlh_kuAfF5w.jpeg" /><figcaption>My “new”, uncluttered iPhone. Credits to <a href="http://www.mockuuups.com/">http://www.mockuuups.com</a> for their awesome PSD</figcaption></figure><p><strong>From now on I won’t be browsing through the App Store no more, looking for cool Apps. I’ll only download an app if I need it at that moment.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c1a63f06d7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>