• Stars
    star
    41
  • Rank 668,415 (Top 14 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Write HTML in plain Crystal

Blueprint logo

A framework for writing reusable and testable HTML templates in plain Crystal.

Tests & Code Format Weekly CI


Example:

class Alert
  include Blueprint::HTML

  private def blueprint
    div class: "alert alert-success" do
      h4(class: "alert-heading") { "Well done!" }
      p { "Hello Word" }
    end
  end
end

Alert.new.to_html

Output:

<div class="alert alert-success">
  <h4 class="alert-heading">Well done!</h4>
  <p>Hello World</p>
</div>

Documentation

For full documentation, visit https://stephannv.github.io/blueprint-docs/.

Contributing

  1. Fork it (https://github.com/stephannv/blueprint/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

More Repositories

1

nindika

Brazilian platform that helps Nintendo Switch owners to find their next game
Ruby
35
star
2

phlex-slotable

Enable Slot API for Phlex views
Ruby
15
star
3

heylisten.me

A application that dispatch updates (tweet, webhooks and etc) coming from Nintendo API.
Ruby
4
star
4

kw

Codes
Lua
3
star
5

lua.util

lua.util is a module with some convenient utilities not included with the standard Lua install.
Lua
3
star
6

customdesigns

An application to share and discover Animal Crossing: New Horizons custom designs.
Ruby
2
star
7

kemal_blueprint_demo_app

A Kemal application using Blueprint to serve HTML pages
Crystal
2
star
8

aseprite_listener

Listen changes on .ase/.aseprite files in specific folder and export .png and .json to a target folder
Ruby
2
star
9

global-vuetify-snackbar

A sample nuxt application implementating a global vuetify snackbar
Vue
2
star
10

stefin

Ruby
1
star
11

flappy-bird

Flappy Bird desenvolvido utilizando a Godot Engine, uma game engine open source de alto nรญvel.
1
star
12

microblog

Microblog รฉ uma mini clone do Twitter desenvolvido em Rails 5
Ruby
1
star
13

nindika_app

Front-end for nindika. A brazilian platform that helps users to find their next Nintendo Switch game.
Vue
1
star
14

platform-shooter

A platformer shooter using GameMaker Studio 2. Tutorial: https://www.youtube.com/watch?v=zqtT_9eWIkM&list=PL9FzW-m48fn3Ya8QUTsqU-SU6-UGEqhx6&index=1
Yacc
1
star
15

goldpoints

An application to track earned My Nintendo gold points across multiple Nintendo eShops.
Ruby
1
star
16

file_watcher

Listen to file modifications using Crystal. Zero dependencies.
Crystal
1
star
17

phlex-variants

Compose your Phlex component with style variants
Ruby
1
star