Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.
/ weblocks-ui Public archive

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

Notifications You must be signed in to change notification settings

40ants/weblocks-ui

Repository files navigation

weblocks-ui

Warning! This repository is deprecated and was renamed to https://github.com/40ants/reblocks-ui

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published