Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
Alizarin is a Crystal shard that helps you build Linux GUI applications using Web Technologies (HTML5, CSS3, JavaScript). This shard also provides ability to extend JavaScript code with native functionalities.
Markdown - A markdown editor written with Alizarin
shard.yml
: dependencies:
alizarin:
github: TheEEs/alizarin
shards install
NOTE: This shard requires libwebkit2gtk-4.0
to be installed. Makes sure you have it installed into your system.
$ sudo apt-get install -y libwebkit2gtk-4.0
require "alizarin"
require "alizarin"
require "colorize"
webview = WebView.new
webview.on_close do |webview|
puts "#{webview} is going to close".colorize :green
exit 0
end
webview.window_size 800, 600
webview.load_url "https://crystal-lang.org/"
webview.run
webview["enable-developer-extras"] = true
webview.show_inspector
NOTE: There is also test cases located in /spec
folder.
To run test case, types:
$ git clone https://github.com/TheEEs/alizarin
$ cd alizarin
$ make
$ crystal spec
See Alizarin API for more.
TODO: Write Development instructions here.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)