Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.45 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.45 KB

hepek-core

Maven Central

Usage

  • Add to deps:
libraryDependencies ++= Seq(
  "ba.sake" % "hepek-core" % "0.2.0"
)

What is it?

Core of the sbt-hepek. This project contains two interfaces (Renderable and RelativePath) and a single helper class (ClassycleDependencyUtils).

Interfaces are essential to the sbt-hepek:

  • All objects that are meant to be rendered must extend Renderable
  • RelativePath is used for getting a relative path to a Renderable or another file (css, js or whatever)

The ClassycleDependencyUtils class has one handy method called reverseDependencies that returns Map[AtomicVertex, Set[AtomicVertex]]. Vertices here are actually Java bytecode classes.

It is used for optimized rendering of objects. When an object is changed and compiled, this method determines which other objects use it, so that they are rendered again too.

Special thanks to Classycle! :)