<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-112773462326884407</id><updated>2021-09-30T12:01:51.367+02:00</updated><title type='text'>digitta</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.digitta.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.digitta.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>568</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1667978229106297929</id><published>2021-09-30T11:58:00.003+02:00</published><updated>2021-09-30T11:59:55.883+02:00</updated><title type='text'>Introducción a Petite  Vue</title><content type='html'>&lt;p&gt;&amp;nbsp;Hace tiempo que no publico en este blog. Aprovecho para crear una pequeña introducción a la nueva librería Petite Vue del mismo autor de Vue pero de tamaño mucho más reducido (6kB).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Veremos qué hace, cómo funciona, cómo compararlo con Vue y con Alpine.js y cómo empezar a usarlo.&lt;/p&gt;&lt;p&gt;petite-vue está optimizado para pequeñas interacciones sobre páginas HTML existentes generadas por un una plataforma de servidor, y con ello simplificando la mejora progresiva.&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Características fundamentales&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;No necesita proceso de &lt;i&gt;build&lt;/i&gt;&lt;/h3&gt;&lt;p&gt;Puedes incluir simplemente petite-vue en una etiqueta script para conseguir sus ventajas en una página HTML:&lt;/p&gt;&lt;pre class=&quot;prettyprinted hljs xml&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(237, 237, 237) none repeat scroll 0% 0%; box-sizing: inherit; color: #4d4d4c; display: block; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 2rem; margin-top: 0px; max-height: 500px; orphans: 2; overflow: auto; padding: 0.5em; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;src&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;https://unpkg.com/petite-vue&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;defer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;init&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: inherit; color: #880000;&quot;&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: inherit; color: #8e908c;&quot;&gt;&amp;lt;!-- en cualquier lugar de la página: --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;v-scope&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;{ count: 0 }&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
  {{ count }}
  &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; @&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;click&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;count++&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;inc&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Pequeño tamaño&lt;/h3&gt;&lt;p&gt;Las últimas versiones de Vue y de Alpine ocupan 22.9kB y 9.9kB minificadas y comprimidas lo que contrasta con los 6.4kB de petite-vue.&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Sintaxis de &lt;i&gt;templates&lt;/i&gt; compatible con Vue&lt;/h3&gt;&lt;p&gt;Un desarrollador familiarizado con la sintaxis de templates de Vue encontrará muy fácil moverse entre Vue y petite-vue.&lt;/p&gt;&lt;p&gt;Como subconjunto de Vue, petite-vue usa la mayoría de la sintaxis familiar de Vue. Por ejemplo, petite-vue usa interpolación de &lt;i&gt;templates&lt;/i&gt; del tipo &lt;span style=&quot;font-family: courier;&quot;&gt;{{cuenta}}&lt;/span&gt; y escuchadores de eventos de &lt;i&gt;templates&lt;/i&gt; como &lt;span style=&quot;font-family: courier;&quot;&gt;@click&lt;/span&gt;.&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Sin DOM virtual&lt;/h3&gt;&lt;p&gt;A diferencia de Vue, React y de la mayoría de otras librerías y plataformas de frontend, petite-vue no usa virtual DOM. En su lugar, muta el DOM in situ. Como resultado, petite-vue no necesita un compilador decrementando su tamaño.&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Dirigido por @vue/reactivity&lt;/h3&gt;&lt;p&gt;El paquete &lt;a href=&quot;https://github.com/vuejs/vue-next/tree/master/packages/reactivity&quot; target=&quot;_blank&quot;&gt;@vue/reactivity&lt;/a&gt; es el responsable de la reactividad de ambos, Vue y Alpine. petite-vue usa la misma técnica de reactividad.&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Cómo se compara petite-vue con Vue estándar&lt;/h2&gt;&lt;p&gt;petite-vue es similar a Vue en muchas formas. Como se ha mencionado, ofrece la misma sintaxis de &lt;i&gt;templates&lt;/i&gt; y modelo @vue/reactivity provisto por Vue estándar. Pero la diferencia más significativa es que petite-vue se ha creado para la mejora progresiva.&lt;/p&gt;&lt;p&gt;Vue estándar se diseñó para usar un paso de generación o &lt;i&gt;build&lt;/i&gt; para crear aplicaciones de una página (SPAs) con fuertes interacciones. Utiliza funciones de renderizado que reemplazan los templates existentes en DOM. petite-vue, por otro lado, recorre el DOM existente y lo muta in situ, por lo que no requiere de un paso de generación.&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Características exclusivas de petite-vue&amp;nbsp;&lt;/h2&gt;&lt;p&gt;petite-vue introduce algunas características que no están disponibles en el Vue estándar y que ayudan a optimizar la mejora progresiva:&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;v-scope&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;En petite-vue, &lt;span style=&quot;font-family: courier;&quot;&gt;v-scope&lt;/span&gt; es una directiva que marca la región de la página controlada por petite-vue. También puedes usar la directiva &lt;span style=&quot;font-family: courier;&quot;&gt;v-scope&lt;/span&gt; para pasar estados a los que una región particular de la página tendrá acceso.&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;v-effect&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-family: courier;&quot;&gt;v-effect&lt;/span&gt; es una directiva usada para ejecutar declaraciones reactivas inline con &lt;span style=&quot;font-family: courier;&quot;&gt;petite-vue&lt;/span&gt;. En&amp;nbsp; el código siguiente, la variable &lt;span style=&quot;font-family: courier;&quot;&gt;cuenta&lt;/span&gt; es reactiva , así que el v-effect se reejecutará cuando cambie la cuenta, entonces actualizar el div con el valor actual de &lt;span style=&quot;font-family: courier;&quot;&gt;cuenta&lt;/span&gt;:&amp;nbsp;&lt;/p&gt;&lt;pre class=&quot;prettyprinted hljs xml&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(237, 237, 237) none repeat scroll 0% 0%; box-sizing: inherit; color: #4d4d4c; display: block; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 2rem; margin-top: 0px; max-height: 500px; orphans: 2; overflow: auto; padding: 0.5em; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;v-scope&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;{ count: 0 }&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;v-effect&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;$el.textContent = count&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; @&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;click&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;count++&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Eventos de ciclo de vida&lt;/h3&gt;&lt;p&gt;petite-vue viene con dos eventos de ciclo de vida, &lt;span style=&quot;font-family: courier;&quot;&gt;@mounted&lt;/span&gt; y &lt;span style=&quot;font-family: courier;&quot;&gt;@unmounted&lt;/span&gt; que te permiten escuchar cuando petite-vue se monta o desmonta en la página.&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Características compatibles con Vue&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Ahora que hemos visto las nuevas características que petite-vue trae, veamos las que ya existían en Vue:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;-webkit-text-stroke-width: 0px; background-color: white; box-sizing: inherit; color: #222222; font-family: Merriweather; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 1rem; margin-top: 0px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;{{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;}}&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;: vinculaciones de texto&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;bind&lt;/span&gt;&lt;/code&gt;&lt;span&gt; y&lt;/span&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;:&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: manejo especial de estilos y clases&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;on&lt;/span&gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;@&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;: manejo de eventos&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;model&lt;/span&gt;&lt;/code&gt;&lt;span&gt;: representa todos los tipos de entradas y vinculaciones &lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;value&lt;/span&gt;&lt;/code&gt;&lt;span&gt; &lt;span&gt;no cadenas&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;if&lt;/span&gt;&lt;/code&gt;/&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;else&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;/&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;if&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;for&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;show&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;hmtl&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;pre&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;once&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;cloak&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;reactive&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;()&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;nextTick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;()&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Template refs&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Características exclusivas de Vue&lt;/h2&gt;&lt;p&gt;Dado su ámbito reducido, petite-vue ha descartado algunas de las características de Vue estándar:&lt;br /&gt;&lt;/p&gt;&lt;ul style=&quot;-webkit-text-stroke-width: 0px; background-color: white; box-sizing: inherit; color: #222222; font-family: Merriweather; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 1rem; margin-top: 0px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;ref&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;()&lt;/span&gt;&lt;/code&gt;&lt;span&gt; &lt;code&gt;y&lt;/code&gt;&lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;computed&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;()&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Funciones de renderizado:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;petite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;vue&lt;/span&gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;no tiene virtual DOM&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Reactividad para tipos de colección:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: inherit;&quot;&gt;Map&lt;/span&gt;&lt;/code&gt;,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: inherit;&quot;&gt;Set&lt;/span&gt;&lt;/code&gt;&lt;span&gt;, etc.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Componentes &lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: inherit;&quot;&gt;Transition&lt;/span&gt;&lt;/code&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;keep&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;alive&lt;/span&gt;&lt;/code&gt;,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;lt;teleport&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;, y&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;lt;suspense&lt;/span&gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;for&lt;/span&gt;&lt;/code&gt;&lt;span&gt;: desestructuración profunda&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: inherit;&quot;&gt;&quot;object&quot;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit;&quot;&gt;is&lt;/span&gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;y&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;lt;component&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;:&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit;&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit;&quot;&gt;&quot;newComponent&quot;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;code class=&quot;prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 0.25rem; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0.2rem 0.4rem;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;bind&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit;&quot;&gt;style&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;auto-prefijado&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Cómo se compara petite-vue con Alpine&lt;/h2&gt;&lt;p&gt;Aunque petite-vue está inspirado por Alpine y resuelve problemas similares, difiere de Alpine debido a su minimalismo y a su compatibilidad con Vue.&lt;/p&gt;&lt;p&gt;petite-vue ocupa unos dos tercios del tamaño de Alpine. A diferencia de Alpine, no trae un sistema de transiciones.&lt;/p&gt;&lt;p&gt;Alpine y petite-vue tienen diferentes diseños. Aunque Alpine se parece a la estructura de Vue de alguna forma, peite-vue está más alineado con el Vue estándar, minimizando el coste den cambios que tendrás si quieres pasar entre petite-vue y Vue.&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Empezar con petite-vue&lt;/h2&gt;&lt;p&gt;Para empezar con petite-vue, necesitas incluir una etiqueta &lt;span style=&quot;font-family: courier;&quot;&gt;script&lt;/span&gt; que apunte al paquete de petite-vue. Creemos una simple aplicación de votación impulsada por petite-vue.&lt;/p&gt;&lt;p&gt;Primero creemos un archivo index.html. En su cuerpo, añade el siguiente código:&lt;/p&gt;&lt;pre class=&quot;prettyprinted hljs xml&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(237, 237, 237) none repeat scroll 0% 0%; box-sizing: inherit; color: #4d4d4c; display: block; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 2rem; margin-top: 0px; max-height: 500px; orphans: 2; overflow: auto; padding: 0.5em; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;src&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;https://unpkg.com/petite-vue&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;defer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;init&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;v-scope&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;{ votosPositivos: 0, votosNegativos: 0 }&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
      {{ votosPositivos }} &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; @&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;click&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;votosPositivos++&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&amp;amp;#128077;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
      {{ votosNegativos }} &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; @&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;click&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;votosNegativos++&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&amp;amp;#128078;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;button&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;El atributo &lt;span style=&quot;font-family: courier;&quot;&gt;defer&lt;/span&gt; de la etiqueta &lt;span style=&quot;font-family: courier;&quot;&gt;script&lt;/span&gt; hace que la carga del código de petite-vue se posponga hasta que el contenido HTML se haya parseado por el navegador.&lt;/p&gt;&lt;p&gt;El atributo &lt;span style=&quot;font-family: courier;&quot;&gt;init&lt;/span&gt; le dice a petite-vue que automáticamente consulte e inicialice todos los elementos que tengan &lt;span style=&quot;font-family: courier;&quot;&gt;v-scope&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;El &lt;span style=&quot;font-family: courier;&quot;&gt;v-scope&lt;/span&gt; le dice a petite-vue que región de la página gestionar. También pasamos los estados &lt;span style=&quot;font-family: courier;&quot;&gt;votosPositivos&lt;/span&gt; y &lt;span style=&quot;font-family: courier;&quot;&gt;votosNegativos&lt;/span&gt; para que estén disponibles en esa región.&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Inicialización manual&lt;/h3&gt;&lt;p&gt;Si no quieres que petite-vue inicialice automáticamente todos los elementos que tengan el atributo &lt;span style=&quot;font-family: courier;&quot;&gt;v-scope&lt;/span&gt;, puedes inicializarlos manualmente cambiando el script:&lt;/p&gt;&lt;pre class=&quot;prettyprinted hljs xml&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(237, 237, 237) none repeat scroll 0% 0%; box-sizing: inherit; color: #4d4d4c; display: block; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 2rem; margin-top: 0px; max-height: 500px; orphans: 2; overflow: auto; padding: 0.5em; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;src&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;https://unpkg.com/petite-vue&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;
  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;PetiteVue&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;createApp&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;().&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;mount&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;undefined&quot; style=&quot;box-sizing: inherit;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;Alternativamente puedes usar la distribución de petite-vue compatible con módulos ES.&lt;/p&gt;&lt;pre class=&quot;prettyprinted hljs xml&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(237, 237, 237) none repeat scroll 0% 0%; box-sizing: inherit; color: #4d4d4c; display: block; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 2rem; margin-top: 0px; max-height: 500px; orphans: 2; overflow: auto; padding: 0.5em; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;box-sizing: inherit; color: #660066;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-attr&quot; style=&quot;box-sizing: inherit;&quot;&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&quot;module&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;
  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #8959a8;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt; createApp &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: inherit; color: #8959a8;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: inherit; color: #008800;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: inherit; color: #718c00;&quot;&gt;&#39;https://unpkg.com/petite-vue?module&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;
  createApp&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;().&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;mount&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: inherit; color: #666600;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: inherit; color: black;&quot;&gt;&lt;span class=&quot;javascript&quot; style=&quot;box-sizing: inherit;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&amp;lt;/&lt;span class=&quot;hljs-name&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span class=&quot;tag&quot; style=&quot;box-sizing: inherit; color: #000088;&quot;&gt;&lt;span class=&quot;hljs-tag&quot; style=&quot;box-sizing: inherit; color: #c82829;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;URL de CDN de producción de petite-vue&lt;/h3&gt;&lt;p&gt;Estamos accediendo a petite-vue mediante una URL de CDN (red de distribución de contenidos). Estamos usando una URL reducida &lt;a href=&quot;https://unpkg.com/petite-vue&quot;&gt;https://unpkg.com/petite-vue&lt;/a&gt; que es perfecta para prototipos pero no para producción. Queremos evitar costes de resolución y de redirección, así que usaremos las URLs completas.&lt;/p&gt;&lt;p&gt;La URL de distribución en producción global &lt;a href=&quot;https://unpkg.com/petite-vue@0.2.2/dist/petite-vue.iife.js&quot;&gt;https://unpkg.com/petite-vue@0.2.2/dist/petite-vue.iife.js&lt;/a&gt; expone PetiteVue global y también soporta autoinicialización.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;La URL de distribución en producción ESM (módulos) &lt;a href=&quot;https://unpkg.com/petite-vue@0.2.2/dist/petite-vue.es.js&quot;&gt;https://unpkg.com/petite-vue@0.2.2/dist/petite-vue.es.js&lt;/a&gt; debe usarse en un bloque &lt;span class=&quot;tag&quot; style=&quot;-webkit-text-stroke-width: 0px; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&amp;lt;script&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;-webkit-text-stroke-width: 0px; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;-webkit-text-stroke-width: 0px; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;-webkit-text-stroke-width: 0px; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;-webkit-text-stroke-width: 0px; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&quot;module&quot;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;-webkit-text-stroke-width: 0px; box-sizing: inherit; color: #bd4147; font-family: Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 16.2px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;.&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Cuándo usar petite-vue&lt;/h2&gt;&lt;p&gt;Hemos aprendido las características de petite-vue y lo que puede hacer. Veamos las mejores situaciones para las que petite-vue está diseñado:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Prototipado rápido cuando no necesitas una herramienta de generación/build&lt;/li&gt;&lt;li&gt;Agregar funcionalidad Vue en plataformas de servidor como Sails, Laravel o Rails&lt;/li&gt;&lt;li&gt;Construir páginas landing o de marketing que sean estáticas con pocas interacciones&lt;/li&gt;&lt;li&gt;En cualquier lugar donde usarías Alpine normalmente&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Conclusión&lt;/h2&gt;&lt;p&gt;&amp;nbsp;peitet-vue es una versión más ligera de Vue que añade interaciones eficientes a las páginas. petite-vue es aún nuevo (2021) e incluye un aviso sobre errores potenciales. En cualquier caso, petite-vue ya es una opción funcional con una utilidad y potencial fuertes. Es especialmente útil para el prototipado rápido, rociando funcionalidad Vue en plataformas de servidor, y construyendo páginas estáticas.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1667978229106297929/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2021/09/introduccion-petite-vue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1667978229106297929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1667978229106297929'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2021/09/introduccion-petite-vue.html' title='Introducción a Petite  Vue'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-8788283585261705813</id><published>2017-01-04T13:39:00.001+01:00</published><updated>2017-01-04T14:02:08.718+01:00</updated><title type='text'>Aprender Javascript en 2016</title><content type='html'>&lt;a href=&quot;http://www.etnassoft.com/2017/01/03/aprender-javascript-en-2016/&quot;&gt;http://www.etnassoft.com/2017/01/03/aprender-javascript-en-2016/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Interesante traducción de un artículo que da justo en el clavo. Programar en Javascript actualmente siguiendo las tendencias del mercado implica aprender una cantidad absurda de tecnologías. Simplemente recordar el principio &lt;i&gt;KISS&lt;/i&gt; (&lt;i&gt;Keep It Simple, Stupid&lt;/i&gt;), algo así como &quot;Hazlo fácil, estúpido&quot;... Complicarse la vida por intentar seguir las tendencias nunca ha sido tan fácil...</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/8788283585261705813/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2017/01/aprender-javascript-en-2016.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/8788283585261705813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/8788283585261705813'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2017/01/aprender-javascript-en-2016.html' title='Aprender Javascript en 2016'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1821783996103866088</id><published>2013-01-08T20:29:00.001+01:00</published><updated>2013-01-08T20:29:25.719+01:00</updated><title type='text'>Couchbase Server</title><content type='html'>Acaba de ser publicado para varias plataformas la &lt;a href=&quot;http://www.couchbase.com/couchbase-server/overview?mkt_tok=3RkMMJWWfF9wsRolvqXNZKXonjHpfsX77uUvX6Sg38431UFwdcjKPmjr1YADTMN0dvycMRAVFZl5nQJXCPSdb4NB9vA%3D&quot;&gt;versión 2.0 del Couchbase Server&lt;/a&gt;. Una interesante base de datos que sigue el paradigma NoSQL que se basa en un modelo flexible sobre JSON que facilitar modificar aplicaciones sin las restricciones de tener esquemas de datos fijos. Además posee un rendimiento elevado gracias a liberarse de las restricciones propias de las bases de datos relacionales, lo que ofrece una velocidad muy elevada en comparación con aquellas. Y otra ventaja es la escalabilidad, ya que la tecnología se ha diseñado con la idea de soportar cambios de topología sin necesidad de detener el servicio en ningún momento.</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1821783996103866088/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2013/01/couchbase-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1821783996103866088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1821783996103866088'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2013/01/couchbase-server.html' title='Couchbase Server'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-615022276457231027</id><published>2012-10-24T09:27:00.001+02:00</published><updated>2012-10-24T09:27:20.320+02:00</updated><title type='text'></title><content type='html'>&lt;span&gt;&lt;a href=&quot;http://code.google.com/p/plv8js/&quot; target=&quot;_blank&quot;&gt;plv8js&lt;/a&gt; es un añadido de lenguaje procedural para PostgreSQL, lo que significa que puedes definir funciones JavaScript que se ejecutan en un servidor PostgreSQL
usando el google V8 Engine. Una pareja perfecta para los recientes campos JSON de PostgreSQL.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/615022276457231027/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/10/plv8js-es-un-anadido-de-lenguaje.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/615022276457231027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/615022276457231027'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/10/plv8js-es-un-anadido-de-lenguaje.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-680657744652973605</id><published>2012-10-15T14:02:00.002+02:00</published><updated>2012-10-15T14:02:56.830+02:00</updated><title type='text'></title><content type='html'>QuirksBlog &lt;a href=&quot;http://www.quirksmode.org/blog/archives/2012/10/javascript_libr_1.html&quot;&gt;ha publicado los resultados&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=112773462326884407&quot;&gt; de una encuesta sobre uso de librería en Javascript, según el cuál, el 80% de desarrolladores usa frecuentemente jQuery, el 35% Modernizr, el 16% Underscore, y el 11% Backbone&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/680657744652973605/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/10/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/680657744652973605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/680657744652973605'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/10/blog-post.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-724675130373194663</id><published>2012-07-18T17:52:00.001+02:00</published><updated>2012-07-18T17:52:50.963+02:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://lifehacker.com/5925287/dear-web-user-please-upgrade-your-browser&quot;&gt;Este artículo&lt;/a&gt; en inglés explica magistralmente la necesidad de mantener actualizado el navegador de Internet. Una referencia interesante orientada a realizar una labor pedagógica hacia los usuarios de productos basados en la web.</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/724675130373194663/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/07/este-articulo-en-ingles-explica.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/724675130373194663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/724675130373194663'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/07/este-articulo-en-ingles-explica.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1372022510778475583</id><published>2012-05-31T09:08:00.000+02:00</published><updated>2012-05-31T09:08:11.685+02:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://damienkatz.net/2012/05/stabilizing_couchbase_server_2.html&quot;&gt;Stabilizing Couchbase Server 2.0&lt;/a&gt;. Sólo notificar el avance en el desarrollo de una nueva base de datos de documentos distribuida, fiable, eficiente y de alto rendimiento. Está basada en el conocido proyecto de &quot;NoSQL&quot; CouchDB...</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1372022510778475583/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/05/stabilizing-couchbase-server-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1372022510778475583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1372022510778475583'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/05/stabilizing-couchbase-server-2.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1700293108066912528</id><published>2012-05-14T13:55:00.001+02:00</published><updated>2012-05-14T13:55:54.577+02:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://www.firebase.com/&quot;&gt;Firebase&lt;/a&gt; es un servicio/nube que automáticamente sincroniza datos entre tus clientes y sus servidores. Libera a los desarrolladores de preocuparse por cómo sus datos serán transmitidos y almacenados, y les permite centrarse en la lógica de la aplicación. Las aplicaciones que usan Firebase pueden escribirse enteramente con Javascript en el navegador, actualizarse directamente en tiempo real, son inherentemente escalables e interoperan con servicios existentes.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.firebase.com/&quot;&gt;&lt;img src=&quot;http://www.firebase.com/images/logo.png&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1700293108066912528/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/05/firebase-es-un-servicionube-que.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1700293108066912528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1700293108066912528'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/05/firebase-es-un-servicionube-que.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1002818726359279837</id><published>2012-05-14T11:52:00.000+02:00</published><updated>2012-05-14T11:52:31.042+02:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://misoproject.com/dataset/&quot;&gt;Dataset&lt;/a&gt; es una librería JS de gestión y transformación de datos en el lado del cliente. Dataset facilita la gestión de datos en el lado del cliente gestionando la carga, proceso, ordenación, consulta y manipulación de datos desde todo tipo de fuentes. http://misoproject.com/dataset/</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1002818726359279837/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/05/dataset-es-una-libreria-js-de-gestion-y.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1002818726359279837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1002818726359279837'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/05/dataset-es-una-libreria-js-de-gestion-y.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1082520570373518344</id><published>2012-04-25T09:21:00.002+02:00</published><updated>2012-04-25T09:21:42.332+02:00</updated><title type='text'></title><content type='html'>Gracias a un mensaje de Google al respecto de &lt;a href=&quot;http://code.google.com/codejam&quot;&gt;Codejam&lt;/a&gt;, descubro &lt;a href=&quot;http://ideone.com/&quot;&gt;ideone.com&lt;/a&gt;, un IDE (editor) para programar online con prácticamente cualquier lenguaje. Interesante.</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1082520570373518344/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/04/gracias-un-mensaje-de-google-al.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1082520570373518344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1082520570373518344'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/04/gracias-un-mensaje-de-google-al.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1902889079125727133</id><published>2012-04-17T17:51:00.002+02:00</published><updated>2012-04-17T17:51:52.734+02:00</updated><title type='text'>Los lenguajes más usados según libros vendidos</title><content type='html'>Me he encontrado con una curiosa gráfica que calcula los lenguajes de programación más usados a partir de la &lt;a href=&quot;http://radar.oreilly.com/archives/2005/04/book-sales-as-a.html&quot;&gt;venta de libros en o&#39;Reilly&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://rww.readwriteweb.netdna-cdn.com/hack/programming-languages-chart.png&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Según ella, Java y Javascript son las que más han crecido. Junto con C++. Por otro lado, han habido descensos en C#, Objective C, PHP o Visual Basic.&lt;br /&gt;
&lt;br /&gt;
via &lt;a href=&quot;http://www.readwriteweb.com/hack/2012/04/java-leads-programming-languag.php&quot;&gt;readwriteweb&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1902889079125727133/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/04/los-lenguajes-mas-usados-segun-libros.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1902889079125727133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1902889079125727133'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/04/los-lenguajes-mas-usados-segun-libros.html' title='Los lenguajes más usados según libros vendidos'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-7780962113669425455</id><published>2012-04-17T14:58:00.002+02:00</published><updated>2012-04-17T14:58:57.642+02:00</updated><title type='text'></title><content type='html'>Un IDE futurista interesante:&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;225&quot; mozallowfullscreen=&quot;&quot; src=&quot;http://player.vimeo.com/video/40281991?title=0&amp;amp;byline=0&amp;amp;portrait=0&quot; webkitallowfullscreen=&quot;&quot; width=&quot;400&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;a href=&quot;http://vimeo.com/40281991&quot;&gt;Light Table - a new IDE&lt;/a&gt; from &lt;a href=&quot;http://vimeo.com/user11261775&quot;&gt;Chris Granger&lt;/a&gt; on &lt;a href=&quot;http://vimeo.com/&quot;&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
via &lt;a href=&quot;http://www.genbetadev.com/actualidad/light-table-o-llevar-los-ides-a-un-futuro-a-lo-minority-report&quot;&gt;genbetadev&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/7780962113669425455/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/04/un-ide-futurista-interesante-light.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/7780962113669425455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/7780962113669425455'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/04/un-ide-futurista-interesante-light.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-584066923601921190</id><published>2012-03-12T10:18:00.001+01:00</published><updated>2012-03-12T10:18:29.717+01:00</updated><title type='text'></title><content type='html'>Andrea de Web Reflection publica  &lt;a href=&quot;http://webreflection.blogspot.com/2012/03/tweet-sized-queue-system.html&quot;&gt;publica un sistema de colas de procesos&lt;/a&gt;, ideal para trabajar con procesos asíncronos, cuya particularidad es que ocupa sólo 96 carácteres, y que incluye ciertas características interesantes. Un lector propone &lt;a href=&quot;http://jsfiddle.net/XT4uF/5/&quot;&gt;una modificación&lt;/a&gt; bastante interesante.</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/584066923601921190/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/03/andrea-de-web-reflection-publica.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/584066923601921190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/584066923601921190'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/03/andrea-de-web-reflection-publica.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-3444889683927122364</id><published>2012-03-08T19:39:00.001+01:00</published><updated>2012-03-08T19:39:58.575+01:00</updated><title type='text'></title><content type='html'>Andrea Giammarchi de &lt;a href=&quot;http://webreflection.blogspot.com/2012/03/i-heard-you-like-to-write-less.html&quot;&gt;Web Reflection&lt;/a&gt; propone, dado el éxito de CoffeeScript y su sucinta sintaxis, eliminar la palabra clave &lt;code&gt;function&lt;/code&gt; de JavaScript. La idea es detectar que estamos definiendo una función a partir del par &lt;strong&gt;(&lt;/strong&gt; y &lt;strong&gt;)&lt;/strong&gt; que define los parámetros seguido de la pareja &lt;strong&gt;{&lt;/strong&gt; y &lt;strong&gt;}&lt;/strong&gt; que define el cuerpo del código. Además propone hacer implícito el &lt;code&gt;return&lt;/code&gt; opcionalmente con el resultado de la última órden del código.&lt;br /&gt;
&lt;br /&gt;
Por ejemplo, &lt;code&gt;[1,2,3].filter(function (x){return x &lt; 1});&lt;/code&gt; se escribiría así: &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;[1,2,3].filter((x){x &lt; 1});&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
¿Te parece buena idea?</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/3444889683927122364/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/03/andrea-giammarchi-de-web-reflection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/3444889683927122364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/3444889683927122364'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/03/andrea-giammarchi-de-web-reflection.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1251119108419370347</id><published>2012-03-06T20:07:00.000+01:00</published><updated>2012-03-06T20:07:12.481+01:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://code.alecperkins.net/coffeetable/&quot;&gt;CoffeeTable&lt;/a&gt;, el proyecto de Alec Perkins acaba de ser actualizado con expansión de objetos. Se trata de una consola desplegable para experimentar en una página usando CoffeeScript como lenguaje. La consola tiene historial persistente y auto-sugerencias. Resulta ideal para modelar el DOM &quot;al vuelo&quot; y junto con un sistema que permita guardar cambios, podría valer para programar directamente sobre la aplicación web. Perfecto para aprender o para proyectos &lt;em&gt;no ambiciosos&lt;/em&gt;.&lt;/p&gt;&lt;p&gt;
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1251119108419370347/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/03/coffeetable-el-proyecto-de-alec-perkins.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1251119108419370347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1251119108419370347'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/03/coffeetable-el-proyecto-de-alec-perkins.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-2966748829083630139</id><published>2012-02-21T23:45:00.000+01:00</published><updated>2012-02-21T23:45:12.334+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://addyosmani.com/resources/essentialjsdesignpatterns/book/#jquerypluginpatterns&quot;&gt;Essential JavaScript Design Patterns by Addy Osmani&lt;/a&gt; es un libro gratuito sobre patrones de diseño en Javascript, imprescindible para usar el lenguaje para realizar aplicaciones mínimamente complejas. Via &lt;a href=&quot;http://www.genbetadev.com/javascript/essential-javascript-design-patterns-by-addy-osmani&quot;&gt;genbetadev.com&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/2966748829083630139/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/02/essential-javascript-design-patterns-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/2966748829083630139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/2966748829083630139'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/02/essential-javascript-design-patterns-by.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-8279731539550512539</id><published>2012-02-13T22:50:00.000+01:00</published><updated>2012-02-13T22:50:18.100+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://highscalability.com/blog/2012/2/13/tumblr-architecture-15-billion-page-views-a-month-and-harder.html&quot;&gt;High Scalability - High Scalability - Tumblr Architecture - 15 Billion Page Views a Month and Harder to Scale than Twitter&lt;/a&gt;

Un interesante artículo sobre la arquitectura usada para la plataforma de micro-blogging Tumblr con ideas excelentes sobre escalabilidad.</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/8279731539550512539/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/02/high-scalability-high-scalability.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/8279731539550512539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/8279731539550512539'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/02/high-scalability-high-scalability.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-875673204183000641</id><published>2012-02-12T16:45:00.000+01:00</published><updated>2012-02-12T16:45:10.542+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://dev.opera.com/articles/view/efficient-javascript/&quot;&gt;Efficient JavaScript - Dev.Opera&lt;/a&gt;. Interesante artículo por parte del equipo de desarrollo del navegador Opera sobre cómo programar eficientemente con Javascript.</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/875673204183000641/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/02/efficient-javascript-dev.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/875673204183000641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/875673204183000641'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/02/efficient-javascript-dev.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1142833338120712459</id><published>2012-02-06T23:43:00.000+01:00</published><updated>2012-02-06T23:43:24.319+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://creativejs.com/2012/02/creativejs-workshops-in-uk-and-amsterdam/&quot;&gt;CreativeJS workshops in UK and Amsterdam&lt;/a&gt;. Interesante vídeo con la creación de un sistema de partículas en 3 minutos:

&lt;iframe src=&quot;http://player.vimeo.com/video/36278748?title=0&amp;amp;byline=0&amp;amp;portrait=0&quot; width=&quot;400&quot; height=&quot;225&quot; frameborder=&quot;0&quot; webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;&lt;p&gt;&lt;a href=&quot;http://vimeo.com/36278748&quot;&gt;CreativeJS for non-coders&lt;/a&gt; from &lt;a href=&quot;http://vimeo.com/pluginmedia&quot;&gt;Seb Lee-Delisle&lt;/a&gt; on &lt;a href=&quot;http://vimeo.com&quot;&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1142833338120712459/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/02/creativejs-workshops-in-uk-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1142833338120712459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1142833338120712459'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/02/creativejs-workshops-in-uk-and.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-3551543561648391460</id><published>2012-02-02T20:32:00.000+01:00</published><updated>2012-02-02T20:32:50.108+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://www.genbetadev.com/desarrollo-web/lungojs-prototipaje&quot;&gt;Primer screencast en castellano de LungoJS&lt;/a&gt;. Trata sobre el &lt;i&gt;easy prototype&lt;/i&gt; o lo fácil que resulta crear prototipos de WebApps prácticamente sin tocar código...

&lt;iframe src=&quot;http://player.vimeo.com/video/35573437?title=0&amp;amp;byline=0&amp;amp;portrait=0&quot; width=&quot;400&quot; height=&quot;225&quot; frameborder=&quot;0&quot; webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;&lt;a href=&quot;http://vimeo.com/35573437&quot;&gt;De Vimeo&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/3551543561648391460/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/02/primer-screencast-en-castellano-de.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/3551543561648391460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/3551543561648391460'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/02/primer-screencast-en-castellano-de.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-5253068385172220626</id><published>2012-02-02T20:21:00.000+01:00</published><updated>2012-02-02T20:21:17.273+01:00</updated><title type='text'></title><content type='html'>Hace unos meses apareció &lt;a href=&quot;http://www.jsfiddle.net/&quot;&gt;jsfiddle.net&lt;/a&gt;. Era una web que permitía publicar pruebas o demostraciones de código de aplicaciones web separando el HTML, el CSS y el código Javascript y mostrando el resultado. Ha resultado ser más que útil y su uso es habitual.

&lt;a href=&quot;http://sqlfiddle.com/about&quot;&gt;SQL Fiddle&lt;/a&gt; es una nueva herramienta para desarrolladores de bases de datos que necesiten probar consultas SQL online. En este caso cuenta con una sección para el lenguaje de definición DDL y otra para la consulta SQL, mostrando los resultados en una tabla. Funciona con MSSQL, MySQL, Oracle y PostgreSQL. Interesante para mostrar conceptos de lenguaje o para aprender...</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/5253068385172220626/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/02/hace-unos-meses-aparecio-jsfiddle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/5253068385172220626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/5253068385172220626'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/02/hace-unos-meses-aparecio-jsfiddle.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-3672648808649235618</id><published>2012-01-31T13:14:00.000+01:00</published><updated>2012-01-31T13:14:17.284+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://www.netmagazine.com/features/top-20-html5-games&quot;&gt;The top 20 HTML5 games&lt;/a&gt;. Los juegos, siempre lo he pensado, forman una de las categorías más exigentes. La necesidad de optimizar procesos es vital porque de lo contrario la experiencia obtenida es muy deficiente. En estos 20 ejemplos queda claro que empieza a haber una fuerte tendencia hacia portar juegos cada vez más complejos al navegador (sin plugins). Probablemente esto también acabe pasando en las plataformas móviles...</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/3672648808649235618/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/01/top-20-html5-games.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/3672648808649235618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/3672648808649235618'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/01/top-20-html5-games.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-1377500128787667992</id><published>2012-01-31T12:49:00.000+01:00</published><updated>2012-01-31T12:49:56.885+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://badassjs.com/post/15082876071/2011-a-badass-javascript-year-in-review?17468d38&quot;&gt;2011: A Badass JavaScript Year In Review&lt;/a&gt;. Un resumen de los proyectos Javascript más significativos de 2011. La tendencia a invadir cada vez más áreas de la computación, ayudado por las implementaciones de los navegadores, dibujan un futuro más que prometedor al lenguaje...</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/1377500128787667992/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/01/2011-badass-javascript-year-in-review.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1377500128787667992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/1377500128787667992'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/01/2011-badass-javascript-year-in-review.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-5826333307131300168</id><published>2012-01-28T19:41:00.000+01:00</published><updated>2012-01-28T19:41:49.394+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://maxtaco.github.com/coffee-script/&quot;&gt;IcedCoffeeScript&lt;/a&gt; es un interesante &lt;i&gt;fork&lt;/i&gt; de CoffeeScript al que le han añadido &lt;code&gt;await&lt;/code&gt; y &lt;code&gt;defer&lt;/code&gt; que mejoran el flujo de control asíncrono en el navegador y en el servidor. Con ello pretenden eliminar las pirámides de funciones &lt;i&gt;callback&lt;/i&gt; y a las reescrituras masivas de código ante cambios de requerimientos de sincronización.</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/5826333307131300168/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/01/icedcoffeescript-es-un-interesante-fork.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/5826333307131300168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/5826333307131300168'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/01/icedcoffeescript-es-un-interesante-fork.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-112773462326884407.post-2205192450107392387</id><published>2012-01-27T09:20:00.000+01:00</published><updated>2012-01-27T09:20:00.395+01:00</updated><title type='text'></title><content type='html'>&lt;a href=&quot;http://akdubya.github.com/dustjs/&quot;&gt;dust.js&lt;/a&gt; es un motor de templates en JavaScript diseñado para ofrecer una separación limpia entre presentación y lógica sin sacrificar la facilidad de uso, y orientada a aplicaciones asíncronas o de streaming. Me ha llamado la atención porque &lt;a href=&quot;http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more&quot;&gt;lo han elegido en LinkedIn&lt;/a&gt; para sustituir su antiguo sistema Java de templates en el servidor...</content><link rel='replies' type='application/atom+xml' href='http://www.digitta.com/feeds/2205192450107392387/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.digitta.com/2012/01/dust.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/2205192450107392387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/112773462326884407/posts/default/2205192450107392387'/><link rel='alternate' type='text/html' href='http://www.digitta.com/2012/01/dust.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>