The reblocks-lass Reference Manual

This is the reblocks-lass Reference Manual, version 0.3.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed May 15 06:45:04 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 reblocks-lass

A helper for Reblocks framework to define CSS dependencies in LASS syntax.

Author

Alexander Artemenko <>

Home Page

https://40ants.com/reblocks-lass/

Source Control

(GIT https://github.com/40ants/reblocks-lass)

Bug Tracker

https://github.com/40ants/reblocks-lass/issues

License

Unlicense

Long Description

<a id="x-28REBLOCKS-LASS-DOCS-2FINDEX-3A-40README-2040ANTS-DOC-2FLOCATIVES-3ASECTION-29"></a>

# reblocks-lass - A helper for Reblocks framework to define CSS dependencies in LASS syntax.

<a id="reblocks-lass-asdf-system-details"></a>

## REBLOCKS-LASS ASDF System Details

* Version: 0.3.0

* Description: A helper for Reblocks framework to define ‘CSS‘ dependencies in ‘LASS‘ syntax.

* Licence: Unlicense

* Author: Alexander Artemenko <svetlyak.40wt@gmail.com>

* Homepage: [https://40ants.com/reblocks-lass/][2335]

* Bug tracker: [https://github.com/40ants/reblocks-lass/issues][a44f]

* Source control: [GIT][293b]

* Depends on: [lass][7e98], [reblocks][184b]

[![](https://github-actions.40ants.com/40ants/reblocks-lass/matrix.svg?only=ci.run-tests)][3d0e]

![](http://quickdocs.org/badge/reblocks-lass.svg)

<a id="x-28REBLOCKS-LASS-DOCS-2FINDEX-3A-3A-40INSTALLATION-2040ANTS-DOC-2FLOCATIVES-3ASECTION-29"></a>

## Installation

You can install this library from Quicklisp, but you want to receive updates quickly, then install it from Ultralisp.org:

“‘
(ql-dist:install-dist "http://dist.ultralisp.org/"
:prompt nil)
(ql:quickload :reblocks-lass)
“‘
<a id="x-28REBLOCKS-LASS-DOCS-2FINDEX-3A-3A-40API-2040ANTS-DOC-2FLOCATIVES-3ASECTION-29"></a>

## API

<a id="x-28REBLOCKS-LASS-DOCS-2FINDEX-3A-3A-40REBLOCKS-LASS-3FPACKAGE-2040ANTS-DOC-2FLOCATIVES-3ASECTION-29"></a>

### REBLOCKS-LASS

<a id="x-28-23A-28-2813-29-20BASE-CHAR-20-2E-20-22REBLOCKS-LASS-22-29-20PACKAGE-29"></a>

#### [package](86c3) ‘reblocks-lass‘

<a id="x-28REBLOCKS-LASS-DOCS-2FINDEX-3A-3A-7C-40REBLOCKS-LASS-3FClasses-SECTION-7C-2040ANTS-DOC-2FLOCATIVES-3ASECTION-29"></a>

#### Classes

<a id="x-28REBLOCKS-LASS-DOCS-2FINDEX-3A-3A-40REBLOCKS-LASS-24LASS-DEPENDENCY-3FCLASS-2040ANTS-DOC-2FLOCATIVES-3ASECTION-29"></a>

##### LASS-DEPENDENCY

<a id="x-28REBLOCKS-LASS-3ALASS-DEPENDENCY-20CLASS-29"></a>

###### [class](d568) ‘reblocks-lass:lass-dependency‘ (local-dependency)

Keeps ‘CSS‘ code, created using [‘make-dependency‘][e5b1] function.

**Readers**

<a id="x-28REBLOCKS-LASS-3ACSS-CODE-20-2840ANTS-DOC-2FLOCATIVES-3AREADER-20REBLOCKS-LASS-3ALASS-DEPENDENCY-29-29"></a>

###### [reader](7d21) ‘reblocks-lass:css-code‘ (lass-dependency) (:css)

<a id="x-28REBLOCKS-LASS-DOCS-2FINDEX-3A-3A-7C-40REBLOCKS-LASS-3FFunctions-SECTION-7C-2040ANTS-DOC-2FLOCATIVES-3ASECTION-29"></a>

#### Functions

<a id="x-28REBLOCKS-LASS-3AMAKE-DEPENDENCY-20FUNCTION-29"></a>

##### [function](305c) ‘reblocks-lass:make-dependency‘ lass-code

This function creates Reblocks dependency with ‘CSS‘ style described in ‘LASS‘ ‘DSL‘.

You can use this dependency in a method of [‘reblocks/dependencies:get-dependencies‘][0fcf] generic-function like this:

“‘lisp
(defmethod reblocks/dependencies:get-dependencies ((widget source-widget))
(append
(list
(reblocks-lass:make-dependency
‘(.source-widget
:border-top "2px solid #cc4b37"
(input :margin 0)
(.dist :margin-right 1em)
(.label-column :white-space "nowrap"
:vertical-align "top")
(.field-column :width "100%")
((:and .dist .disabled) :color "gray")

((.source-controls > (:or form input))
:display "inline-block"
:margin-left 1em)
(.error :color "red"))))
(call-next-method)))
“‘

[2335]: https://40ants.com/reblocks-lass/
[e5b1]: https://40ants.com/reblocks-lass/#x-28REBLOCKS-LASS-3AMAKE-DEPENDENCY-20FUNCTION-29
[0fcf]: https://40ants.com/reblocks/dependencies/#x-28REBLOCKS-2FDEPENDENCIES-3AGET-DEPENDENCIES-20GENERIC-FUNCTION-29 [293b]: https://github.com/40ants/reblocks-lass
[3d0e]: https://github.com/40ants/reblocks-lass/actions
[86c3]: https://github.com/40ants/reblocks-lass/blob/1f9410643ad27ddb319815be453e96b06e3a3125/src/core.lisp#L1
[d568]: https://github.com/40ants/reblocks-lass/blob/1f9410643ad27ddb319815be453e96b06e3a3125/src/core.lisp#L19
[7d21]: https://github.com/40ants/reblocks-lass/blob/1f9410643ad27ddb319815be453e96b06e3a3125/src/core.lisp#L20
[305c]: https://github.com/40ants/reblocks-lass/blob/1f9410643ad27ddb319815be453e96b06e3a3125/src/core.lisp#L40
[a44f]: https://github.com/40ants/reblocks-lass/issues
[7e98]: https://quickdocs.org/lass
[184b]: https://quickdocs.org/reblocks

* * *
###### [generated by [40ANTS-DOC](https://40ants.com/doc/)]

Version

0.3.0

Defsystem Dependency

40ants-asdf-system (system).

Dependency

reblocks-lass/core (system).

Source

reblocks-lass.asd.


2.2 reblocks-lass/core

Author

Alexander Artemenko <>

Home Page

https://40ants.com/reblocks-lass/

Source Control

(GIT https://github.com/40ants/reblocks-lass)

Bug Tracker

https://github.com/40ants/reblocks-lass/issues

License

Unlicense

Dependencies
  • reblocks/dependencies (system).
  • reblocks/utils/misc (system).
  • lass (system).
Source

reblocks-lass.asd.


3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 reblocks-lass/reblocks-lass.asd

Source

reblocks-lass.asd.

Parent Component

reblocks-lass (system).

ASDF Systems

3.1.2 reblocks-lass/core/file-type.lisp

Source

reblocks-lass.asd.

Parent Component

reblocks-lass/core (system).

Packages

reblocks-lass.

Public Interface

4 Packages

Packages are listed by definition order.


4.1 reblocks-lass

Source

file-type.lisp.

Nickname

reblocks-lass/core

Use List

common-lisp.

Public Interface

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Ordinary functions

Function: make-dependency (lass-code)

This function creates Reblocks dependency with CSS style described in [LASS][LASS] DSL.

You can use this dependency in a method of REBLOCKS/DEPENDENCIES:GET-DEPENDENCIES generic-function like this:

“‘lisp
(defmethod reblocks/dependencies:get-dependencies ((widget source-widget))
(append
(list
(reblocks-lass:make-dependency
‘(.source-widget
:border-top "2px solid #cc4b37"
(input :margin 0)
(.dist :margin-right 1em)
(.label-column :white-space "nowrap"
:vertical-align "top")
(.field-column :width "100%")
((:and .dist .disabled) :color "gray")

((.source-controls > (:or form input))
:display "inline-block"
:margin-left 1em)
(.error :color "red"))))
(call-next-method)))
“‘

Package

reblocks-lass.

Source

file-type.lisp.


5.1.2 Generic functions

Generic Reader: css-code (object)
Package

reblocks-lass.

Methods
Reader Method: css-code ((lass-dependency lass-dependency))

automatically generated reader method

Source

file-type.lisp.

Target Slot

css.


5.1.3 Standalone methods

Method: get-url ((dependency lass-dependency))

Returns a hash-like url for this dependency because it does not have a real filename.

Package

reblocks/dependencies.

Source

file-type.lisp.

Method: serve ((dependency lass-dependency))

Serves static dependency from the disk.

Package

reblocks/dependencies.

Source

file-type.lisp.


5.1.4 Classes

Class: lass-dependency

Keeps CSS code, created using MAKE-DEPENDENCY function.

Package

reblocks-lass.

Source

file-type.lisp.

Direct superclasses

local-dependency.

Direct methods
Direct slots
Slot: css
Type

string

Initargs

:css

Readers

css-code.

Writers

This slot is read-only.


5.2 Internals


Appendix A Indexes


A.1 Concepts


A.3 Variables

Jump to:   C   S  
Index Entry  Section

C
css: Public classes

S
Slot, css: Public classes