Coder Social home page Coder Social logo

bzerangue / xslt-pears Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bauhouse/xslt-pears

0.0 1.0 0.0 184 KB

Pears - an example of using XSLT as a static site generator

Home Page: http://stephenbau.com/lab/experiments/xslt-pears/

HTML 88.00% CSS 5.03% JavaScript 0.40% Shell 1.31% XSLT 5.26%

xslt-pears's Introduction

Pears

XSLT Static Site Generator

Dan Cedarholm announced Pears on 6 February 2012.

Yesterday, on stage at An Event Apart Atlanta, I announced Pears: an open source WordPress theme for creating your own markup & style pattern library.

I wanted to create my own database repository of commonly used patterns and figured the tool might be useful for others as well. Breaking interfaces down into patterns has been immensely helpful in learning and re-evaluating the best possible code to implement them. I've just gotten started and will be adding more as I create them.

But Pears isn't about how I code these patterns--it's a tool for creating your own.

The theme is available on GitHub for those that want to chip in and make it even better. Admittedly, the code is a little rough here and there, but it works.

Looking forward to seeing others' takes on the patterns that power flexible web interfaces.

When I saw the Pears theme that Dan Cedarholm had created for WordPress, I thought it would make a great Symphony ensemble. So, I created a Symphony ensemble. But I also thought it would serve as an interesting example of how easy it might be to create a static site generator with XSLT.

I wrote some articles to explain the basic principles of Preprocessors for HTML and building an XSLT Static Site Generator. This repository is a working example of the Pears site rebuilt with XSLT.

Usage

To process the HTML files, you need xsltproc installed. For Mac and Linux and other UNIX-based systems, it is likely that xsltproc is already installed. To find out, type the following on the command line:

xsltproc --version

In a terminal window, navigate to the workspace directory in this repository. Then, run the build script.

cd /path/to/pears/workspace
./build

Alternatively, you can open the build file and test individual files as you are working on them by copying the xsltproc command used to process a specific HTML file.

Change Log

Version 1.0 - 15 October 2012

  • Port Pears to build pages with an XSLT static site generator

Enjoy Three Different Flavours of Pears

Now you have your choice of technologies on which to build your pattern library: WordPress, Symphony or XSLT. You can find more about the original WordPress theme below.

A WordPress Theme by Dan Cedarholm

Pears are common patterns of markup & style.

Pears is an open source WordPress theme. I'll admit the code is a bit rough, initially based on the default 'twentyone' theme.

I wanted a handy way of collecting HTML & CSS pattern pairs. Often used modules with a minimal of style applied. It's become a valuable learning tool, whereby breaking interfaces down into small pieces make it easier to learn and improve running code.

HOW TO ADD CODE PATTERNS

  • Each pattern is a post in WordPress.
  • Add markup in a custom field named 'html'.
  • Add style in a custom field named 'css'.
  • Use the main content field for optional notes.

Learn more and see it in action here: http://pea.rs

Enjoy.

Dan Cederholm Salem, Massachusetts February, 2012 http://simplebits.com

xslt-pears's People

Contributors

bauhouse avatar

Watchers

James Cloos 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.