Kelpie

:dog2: I accidentally built an HTML templating engine in Julia

https://github.com/millironx/kelpie.jl

Science Score: 18.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary

Keywords

html julia template-engine
Last synced: 6 months ago · JSON representation ·

Repository

:dog2: I accidentally built an HTML templating engine in Julia

Basic Info
  • Host: GitHub
  • Owner: MillironX
  • License: mit
  • Language: Julia
  • Default Branch: master
  • Homepage:
  • Size: 201 KB
Statistics
  • Stars: 11
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
html julia template-engine
Created almost 4 years ago · Last pushed almost 4 years ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation

README.md

Kelpie

Stable Dev Build Status Coverage Code Style: Blue PkgEval Genie Downloads

:dog2: I accidentally built an HTML templating engine in Julia. It looked a lot like Pug, but I like working dogs better, so I named it Kelpie.

Installation

You can install straight from the Julia REPL. Press ] to enter pkg mode, then:

julia add Kelpie

Usage

Most HTML elements[^1] now have functions of the same name: simply pass the contents as a positional argument, and attributes as keyword arguments, and everything will be returned as an EzXML Document or Node.

```julia import EzXML: prettyprint

doc = html( head( title("Kelpie.jl is awesome!"), ), body( header( h1("Dogs are cool"), h2("Julia is cool"), ), main( img(; src="/kelpie-on-sheep-back.jpg", alt="A Kelpie herding sheep" ), [ p("Kelpies make great herding dogs for $animal.") for animal in ["cows", "sheep", "chickens"] ]..., ), ), )

prettyprint(doc) ```

Turns into

html <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE html SYSTEM "about:legacy-compat"> <html> <head> <title>Kelpie.jl is awesome!</title> </head> <body> <header> <h1>Dogs are cool</h1> <h2>Julia is cool</h2> </header> <main> <img src="/kelpie-on-sheep-back.jpg" alt="A Kelpie herding sheep" /> <p>Kelpies make great herding dogs for cows.</p> <p>Kelpies make great herding dogs for sheep.</p> <p>Kelpies make great herding dogs for chickens.</p> </main> </body> </html>

Everything is pure Julia, so your imagination is the limit!

[^1]: Exception: div is the division function, and I wanted to leave it that way. To make <div>s, you need to use html_div.

Owner

  • Name: Thomas A. Christensen II
  • Login: MillironX
  • Kind: user
  • Location: Wyomingite sojurning in Kansas

Engineer, rancher, techie, filmmaker & one of those crazy Wyoming dairy cow people. Christian, American, Conservative, Pro-gun, heterosexual. Any questions?

Citation (CITATION.bib)

@misc{Kelpie.jl,
	author  = {Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> and contributors},
	title   = {Kelpie.jl},
	url     = {https://github.com/MillironX/Kelpie.jl},
	version = {v0.2.1},
	year    = {2022},
	month   = {4}
}

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 62
  • Total Committers: 1
  • Avg Commits per committer: 62.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Thomas A. Christensen II 2****X 62

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 4
  • Average time to close issues: less than a minute
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 3.0
  • Average comments per pull request: 0.75
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • JuliaTagBot (1)
Pull Request Authors
  • MillironX (4)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • julia 13 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
juliahub.com: Kelpie

:dog2: I accidentally built an HTML templating engine in Julia

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 13 Total
Rankings
Dependent repos count: 9.9%
Average: 34.5%
Stargazers count: 35.6%
Dependent packages count: 38.9%
Forks count: 53.5%
Last synced: 6 months ago