Coder Social home page Coder Social logo

vindarel / weblocks-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 40ants/weblocks-ui

0.0 3.0 0.0 25 KB

A set of widget for Weblocks framework, to simplify UI elements creation. Based on Zurb's Foundation and jQuery.

Common Lisp 90.62% Python 9.38%

weblocks-ui's Introduction

weblocks-ui

https://travis-ci.org/40ants/cl-hamcrest.svg?branch=master

Weblocks-ui brings Foundation styling to your Weblocks application.

Usage

Weblocks-ui defines a ui-widget. Your widgets than inherit from it get automatic styling:

(defwiget my-widget (weblocsk-ui:ui-widget)
  ((…))

The dependencies (Foundation and Jquery) are automatically fetched from a CDN (Cloudflare).

weblocks-ui/form:with-html-form is used to quickly set up correct Weblocks forms (with Ajax calls, actions, etc).

This example is an except of the quickstart tutorial:

(defmethod render ((task-list task-list))
  (with-html
    (:h1 "Tasks")
    (loop for task in (tasks task-list) do
      (render task))
    (with-html-form (:POST (lambda (&key title &allow-other-keys)
                                   (add-task task-list title)))
      (:input :type "text"
              :name "title"
              :placeholder "Task's title")
      (:input :type "submit"
              :value "Add"))))

Building Documentation

How to build documentation

To build documentation, you need Sphinx. It is a documentaion building tool written in Python.

To install it, you need a virtualenv. Read this instructions how to install it.

Also, you'll need a cl-launch. It is used by documentation tool to run a script which extracts documentation strings from lisp systems.

Run these commands to build documentation:

virtualenv env
source env/bin/activate
pip install -r docs/requirements.txt
invoke build_docs

These commands will create a virtual environment and install some python libraries there. Command invoke build_docs will build documentation and upload it to the GitHub, by replacing the content of the gh-pages branch.

Authors

  • Alexander Artemenko

Copyright

Copyright (c) 2017 Alexander Artemenko

License

Licensed under the BSD License.

weblocks-ui's People

Contributors

svetlyak40wt avatar vindarel avatar

Watchers

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