Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 07:36
    scala-steward opened #224
  • May 15 10:37
    scala-steward opened #223
  • Apr 12 23:03
    scala-steward closed #218
  • Apr 12 23:03
    scala-steward commented #218
  • Apr 12 23:03
    scala-steward opened #222
  • Apr 04 23:09
    scala-steward closed #219
  • Apr 04 23:09
    scala-steward commented #219
  • Apr 04 23:09
    scala-steward opened #221
  • Mar 22 20:11
    scala-steward opened #220
  • Feb 28 12:18
    sake92 commented #55
  • Feb 14 14:19
    scala-steward closed #216
  • Feb 14 14:19
    scala-steward commented #216
  • Feb 14 14:19
    scala-steward opened #219
  • Feb 02 01:30
    scala-steward opened #218
  • Jan 19 22:37
    scala-steward opened #217
  • Dec 11 2021 02:32
    scala-steward opened #216
  • Dec 07 2021 16:20

    sake92 on master

    Derive JsonRW for jsonable clas… (compare)

  • Dec 07 2021 16:18
    scala-steward opened #215
  • Dec 07 2021 15:55

    sake92 on master

    Fix MimeTypes (compare)

  • Dec 07 2021 15:52

    sake92 on master

    Fix literals bug.. cannot deriv… (compare)

Sakib Hadžiavdić
@sake92
I wanted to extract these "components" in a separate project
so it can be used in different contexts: Static site generator and Play framework
Play doesn't need some classes like StaticPage, blog support, automatic paths etc

I did some work on Bulma also, you probably saw that
Grid now works fine, forms need some more work :)
Also, started to extract these common classes like btnSuccess, btnDanger etc in Classes trait
Makes sense? xD
Peter Pan
@P3trur0
Yup, I see. So basically the stuff in hepek Is no more necessary? For example all the components written so far
Sakib Hadžiavdić
@sake92
Well, hepek (SSG) depends on components
Peter Pan
@P3trur0
Since now there are Form and Grid ones in hepek-components, right?
Sakib Hadžiavdić
@sake92
they're just moved in a subproject
Peter Pan
@P3trur0
Ok, clear 🙂
Sakib Hadžiavdić
@sake92
If someone needs "a bunch of scalatags helpers" he can use hepek-components
yup, great :smile:
Peter Pan
@P3trur0
But for example, assuming we'd like to use Bulma CardComponent, do we have to import the new bulmatextclasses?
Sakib Hadžiavdić
@sake92
I didn't have time to migrate all those components
"hepek-components" should contain universal components
that work with both Bootstrap and Bulma
If you manage to make that work, it would be great :slight_smile:
otherwise, we'll leave them as is
see GridComponents for example
Sakib Hadžiavdić
@sake92
We have an implementation for Bulma and for Bootstrap, and can easily switch from one to other
Peter Pan
@P3trur0
perfect then
so to wrap up my understanding: hepek-components is for common scaffolding, while all the custom part should goes under hepek module itself
Sakib Hadžiavdić
@sake92
Yes, kinda, use hepek for experimenting
Peter Pan
@P3trur0
ok :smile:
Sakib Hadžiavdić
@sake92
btw, i fixed that bug with repeating cls := ..
you can remove those enrichClass.. stuff
Peter Pan
@P3trur0
cool
Alex Bush
@alexjbush
Hey, I love this lib btw
Is there a reason why you are using a snapshot scalatags version from ba.sake instead of com.lihaoyi?
Sakib Hadžiavdić
@sake92
@alexjbush thanks, and welcome! :smiley:
there was a bug in scalatags, it merged repeated attributes
I guess we could update it to scalatags 0.7.0 now :)
Alex Bush
@alexjbush
Ah great :D
Sakib Hadžiavdić
@sake92
object MultiPage extends Multi {

  def rends = Seq(PageImpl("1"), PageImpl("2"))
}

case class PageImpl(name: String) extends Renderable {

  override def relPath = Paths.get(s"examples/simple/multi/$name.txt")

  override def render = s"multi$name"
}
Finally got it working! :smile:
Could be that I broke something, please report if you find something
Anyway, new version of sbt-hepek is 0.2.0
it supports MultiRenderable
which enables you to render multiple pages from one template
you can call DB, Wordpress API or something dynamic now!
And got it rendered to static pages! :smiley:
Sakib Hadžiavdić
@sake92

New hepek SSG version is 0.6.0 with ScalaMultiRenderable support
drocsid
@drocsid
I asked on r/scala and someone referred me to this project
Thanks for making it! Trying to bring up a site quickly with it.
Sakib Hadžiavdić
@sake92
@drocsid you're welcome! :smiley:
if you need any help, just ping me here