Giter Club home page Giter Club logo

kirby-plugin-table's Introduction

Table Plugin

Based on Bastian Allgeier Columns plugin, this is a plugin for Kirby enables a simple syntax in Kirbytext for simple table layouts with formatted content.

Table

Installation

Download the plugins repository and copy table.php to /site/plugins of your site.

Example usage in Kirbytext

(table…)

##### A1

(…column…)

Donec ullamcorper nulla non metus auctor fringilla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

(…column…)

(image: default.jpg)

(…row…)

##### A2

(…column…)

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

(…column…)

- Bibendum
- Venenatis
- Quam
- Etiam
- Lorem

(…row…)

##### A3

(…column…)

Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum.

(…column…)

Aenean lacinia bibendum nulla sed consectetur. Nullam quis risus eget urna mollis ornare vel eu leo.

(…table)

The (…row…) (previously ++++) seperator is used to divide text into rows. The (…column…) (previously ////) seperator is used to divide text into columns. Just make sure to provide the same number of columns for each row. For the opening and closing table, row and column tags you can either use the more elegant ellipsis … (Alt+. on a Mac or AltGr+Shift+, on certain Linux distribution) or three dots.

(table…)

(…table)

or

(table...)

(...table)

The ++++ and //// are still supported. It let choose between a more verbose or more ASCII-art writing style.

Modifying class names

Class names for the table can be modified in your config:

c::set('table.container', 'table');

kirby-plugin-table's People

Contributors

julien-gargot avatar

Watchers

Lee Tengum avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.