Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.adapter.visualization.html

HTML page templates and styling for quantum visualizations

HTML page templates and styling for quantum visualizations
raw docstring

create-html-page-with-svgclj

(create-html-page-with-svg svg-elements
                           &
                           {:keys [title description include-css]
                            :or {title "Quantum Visualizations"
                                 include-css true}})

Create complete HTML page containing SVG visualizations.

Generates a modern, responsive HTML page with embedded SVG visualizations. Includes beautiful styling with gradient backgrounds and card-based layout.

Parameters:

  • svg-elements: Vector of SVG strings to embed in the page
  • options: Page customization options :title - Page title (default 'Quantum Visualizations')
    :description - Page description for meta tags and header :include-css - Include default CSS styling (default true)

Returns: Complete HTML string ready for saving to file

Example: (create-html-page-with-svg [svg-chart svg-bloch] :title "Quantum Analysis" :description "Bell state preparation and measurement")

Create complete HTML page containing SVG visualizations.

Generates a modern, responsive HTML page with embedded SVG visualizations.
Includes beautiful styling with gradient backgrounds and card-based layout.

Parameters:
- svg-elements: Vector of SVG strings to embed in the page
- options: Page customization options
  :title - Page title (default 'Quantum Visualizations')  
  :description - Page description for meta tags and header
  :include-css - Include default CSS styling (default true)

Returns:
Complete HTML string ready for saving to file

Example:
(create-html-page-with-svg 
 [svg-chart svg-bloch] 
 :title "Quantum Analysis"
 :description "Bell state preparation and measurement")
sourceraw docstring

create-minimal-html-pageclj

(create-minimal-html-page content & {:keys [title css meta]})

Create minimal HTML page with custom CSS and content.

For cases where you need more control over the page structure.

Parameters:

  • content: Hiccup data structure for page content
  • options: Page options :title - Page title :css - Custom CSS string :meta - Additional meta tags

Returns: HTML string

Create minimal HTML page with custom CSS and content.

For cases where you need more control over the page structure.

Parameters:
- content: Hiccup data structure for page content
- options: Page options
  :title - Page title
  :css - Custom CSS string
  :meta - Additional meta tags

Returns:
HTML string
sourceraw docstring

quantum-visualization-cssclj

Default CSS styling for quantum visualization HTML pages.

Provides modern, responsive design with:

  • Gradient background
  • Card-based layout
  • Professional typography
  • Responsive design
  • Clean spacing and shadows
Default CSS styling for quantum visualization HTML pages.

Provides modern, responsive design with:
- Gradient background
- Card-based layout  
- Professional typography
- Responsive design
- Clean spacing and shadows
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close