当前位置: 首页 > 软件库 > Web应用开发 > >

vue-jekyll

授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 甄正信
操作系统 未知
开源组织
适用人群 未知
 软件概览

Static, meet dynamic.

Demo: https://vue-jekyll.surge.sh

This Repo is a bare-bones template for building static sites that leverage a client-side JS framework for dynamic functionality. It uses NPM, Webpack, Vue, and Jekyll. It uses NPM (and Bundler) to manage the project's dependencies, and improve the development workflow. It uses Webpack to roll up and transpile all the individual modules and components into a single bundeled JS file. It uses Jekyll to bring it all together, build the site, and serve an initial static file to the browser. It uses Vue to render pages on the client side (if JS is supported), and provide any additional dynamic functionality that may be needed.

Why not use Nuxt? Nuxt is great, but if you're working with non-technical writers and editors—why not roll in a nicely baked web-based back end for them to work with. There are a number of nice Jekyll based CMS' to choose from, I like Siteleaf

The best of both worlds.

Take the best parts of a static site workflow and combine them with the new hotness of a client side framework. What you end up with is a great new way to publish content on the modern web. Isomorphic blah blah blah: Use Jekyll to publish the site's pages, and the JSON data behind them—use Vue to build the same pages with the same data. Serve the first static page to the user—if JS is supported, just send the JSON down the wire and build the rest of the pages/content with Vue. If there's no JS support, continue to send pre-rendered static pages down the wire.

Setup

  • Clone the Repo
  • npm install
  • bundle install
  • npm run jekyllfy
  • Vue 会尽可能高效地渲染元素,通常会复用已有元素而不是从头开始渲染。这么做除了使 Vue 变得非常快之外,还有其它一些好处。例如,如果你允许用户在不同的登录方式之间切换: <div id="app"> <button @click="flag=!flag">按钮</button> <div v-if="flag"> 手机号:<input

  • 第一种:绝对路径在index.html中直接引入,全局可用 提示:在index.html中引入的文件必须放在static下面 1.在index.html中引入jquery.js <script src="./static/jquery.js"></script> 注意:如果是在index.html引入的是自己写的全局的js,写在window.onload=function(){}   2.在.vu

  • 安装vue cli 脚手架 npm install -g @vue/cli vue 查看是否安装成功 D:\dxby\workspace\study\testgit\vuedemo>vue Usage: vue <command> [options] Options:   -V, --version                              output the version n

  • 有时候用jsx写页面可能更灵活,当然在vue中写jsx需要插件的支持 我用了一些官方给出的,感觉不怎么好用,推荐安装这个 安装babel-plugin-transform-vue-jsx插件 GitHub地址 https://github.com/vuejs/jsx/tree/master/packages/babel-plugin-transform-vue-jsx 看文档安装配置吧 这个配置起

 相关资料
  • 构造器 每个 Vue.js 应用都是通过构造函数 Vue 创建一个 Vue 的根实例 启动的: var vm = new Vue({ // 选项 }) 虽然没有完全遵循 MVVM 模式, Vue 的设计无疑受到了它的启发。因此在文档中经常会使用 vm 这个变量名表示 Vue 实例。 在实例化 Vue 时,需要传入一个选项对象,它可以包含数据、模板、挂载元素、方法、生命周期钩子等选项。全部的选

  • jekyll-vue-template A Jekyll project template that uses Vue.js single file components complete with webpack bundling and optimizations. Overview jekyll-vue-template is an opinionated, but minimal boil

  • vue

    教程简介 本教程要实现一个简单的后台管理系统,包含登陆、数据列表、数据查询、列表分页、添加数据、修改数据和删除数据等功能,教程会从 Vue 入门开始讲解,包含 es6、Sass、Webpack、Bootstrap、jQuery 等技术,再到后台管理系统的一些常规功能,用 Vue 如何去实现。 也许会有人质疑 Vue 和 jQuery 的搭配,在我本人看来,jQuery 本身已很成熟,而且包含了很多

  • FAQ 哇,非常长的一页!是否意味着 Vue 2.0 已经完全不同了呢,是否需要从头学起呢,Vue 1.0 的项目是不是没法迁移了? 非常开心地告诉你,并不是!几乎 90% 的 API 和核心概念都没有变。因为本节包含了很多详尽的阐述以及许多迁移的例子,所以显得有点长。不用担心,你不必从头到尾把本节读一遍! 我该从哪里开始项目迁移呢? 首先,在当前项目下运行迁移工具。我们非常谨慎地把高级 Vue

  • Integration with Vue is easily done with the @tinymce/tinymce-vue package. To use it, install it with npm like this: npm install @tinymce/tinymce-vue For information on how to use the package, check

  • 本规范提供了一种统一的编码规范来编写 Vue.js 代码。这使得代码具有如下的特性: 其它开发者或是团队成员更容易阅读和理解。 IDEs 更容易理解代码,从而提供高亮、格式化等辅助功能 更容易使用现有的工具 更容易实现缓存以及代码包的分拆 要点 尽量使用ES2015,遵循CommonJs规范 切勿直接操作DOM,所以也应该避免使用jQuery库 data属性一定要是一个函数并且返回一个json对象