64 lines
4.2 KiB
JavaScript
64 lines
4.2 KiB
JavaScript
const posts = [
|
|
{
|
|
title: 'How To Disable ABS in Your Car',
|
|
date: 1590908400000,
|
|
html: `
|
|
<p>First, you have to know what <a href='https://svelte.dev'>Svelte</a> is. Svelte is a UI framework with a bold new idea: rather than providing a library that you write code with (like React or Vue, for example), it's a compiler that turns your components into highly optimized vanilla JavaScript. If you haven't already read the <a href='https://svelte.dev/blog/frameworks-without-the-framework'>introductory blog post</a>, you should!</p>
|
|
|
|
<p>Sapper is a Next.js-style framework (<a href='blog/how-is-sapper-different-from-next'>more on that here</a>) built around Svelte. It makes it embarrassingly easy to create extremely high performance web apps. Out of the box, you get:</p>
|
|
|
|
<ul>
|
|
<li>Code-splitting, dynamic imports and hot module replacement, powered by webpack</li>
|
|
<li>Server-side rendering (SSR) with client-side hydration</li>
|
|
<li>Service worker for offline support, and all the PWA bells and whistles</li>
|
|
<li>The nicest development experience you've ever had, or your money back</li>
|
|
</ul>
|
|
|
|
<p>It's implemented as Express middleware. Everything is set up and waiting for you to get started, but you keep complete control over the server, service worker, webpack config and everything else, so it's as flexible as you need it to be.</p>
|
|
`
|
|
},
|
|
{
|
|
title: 'How to Pay Zero in Taxes',
|
|
date: 1590908400000,
|
|
html: `
|
|
<p>First, you have to know what <a href='https://svelte.dev'>Svelte</a> is. Svelte is a UI framework with a bold new idea: rather than providing a library that you write code with (like React or Vue, for example), it's a compiler that turns your components into highly optimized vanilla JavaScript. If you haven't already read the <a href='https://svelte.dev/blog/frameworks-without-the-framework'>introductory blog post</a>, you should!</p>
|
|
|
|
<p>Sapper is a Next.js-style framework (<a href='blog/how-is-sapper-different-from-next'>more on that here</a>) built around Svelte. It makes it embarrassingly easy to create extremely high performance web apps. Out of the box, you get:</p>
|
|
|
|
<ul>
|
|
<li>Code-splitting, dynamic imports and hot module replacement, powered by webpack</li>
|
|
<li>Server-side rendering (SSR) with client-side hydration</li>
|
|
<li>Service worker for offline support, and all the PWA bells and whistles</li>
|
|
<li>The nicest development experience you've ever had, or your money back</li>
|
|
</ul>
|
|
|
|
<p>It's implemented as Express middleware. Everything is set up and waiting for you to get started, but you keep complete control over the server, service worker, webpack config and everything else, so it's as flexible as you need it to be.</p>
|
|
`
|
|
},
|
|
{
|
|
title: 'Here\'s Why Canned Water is Better',
|
|
date: 1590908400000,
|
|
html: `
|
|
<p>First, you have to know what <a href='https://svelte.dev'>Svelte</a> is. Svelte is a UI framework with a bold new idea: rather than providing a library that you write code with (like React or Vue, for example), it's a compiler that turns your components into highly optimized vanilla JavaScript. If you haven't already read the <a href='https://svelte.dev/blog/frameworks-without-the-framework'>introductory blog post</a>, you should!</p>
|
|
|
|
<p>Sapper is a Next.js-style framework (<a href='blog/how-is-sapper-different-from-next'>more on that here</a>) built around Svelte. It makes it embarrassingly easy to create extremely high performance web apps. Out of the box, you get:</p>
|
|
|
|
<ul>
|
|
<li>Code-splitting, dynamic imports and hot module replacement, powered by webpack</li>
|
|
<li>Server-side rendering (SSR) with client-side hydration</li>
|
|
<li>Service worker for offline support, and all the PWA bells and whistles</li>
|
|
<li>The nicest development experience you've ever had, or your money back</li>
|
|
</ul>
|
|
|
|
<p>It's implemented as Express middleware. Everything is set up and waiting for you to get started, but you keep complete control over the server, service worker, webpack config and everything else, so it's as flexible as you need it to be.</p>
|
|
`
|
|
}
|
|
];
|
|
|
|
posts.forEach(post => {
|
|
post.slug = post.title.toLowerCase().replace(/\W+/g, '-');
|
|
post.html = post.html.replace(/^\t{3}/gm, '');
|
|
});
|
|
|
|
export default posts;
|