Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mathieu
    @mathieuleclaire
    right
    it is however easier to deal with tags.div and to handle them reactively
    so, my only option is to a website less dynamic
    generating static pages with scalatex in a basic way
    Mathieu
    @mathieuleclaire
    so I probably do not need a js version then
    the problem is that I publish a bad version yesteraday, the 0.3.8
    I am sorry
    Li Haoyi
    @lihaoyi
    revert the changes and publish a good version again i guess
    Mathieu
    @mathieuleclaire
    ok
    Ólafur Páll Geirsson
    @olafurpg
    Hi, is there any chance I can help with publishing a new scalatex version?
    #52 fixes a few builds for me, I'm currently using a custom release from my bintray repo
    resolvers += Resolver.bintrayIvyRepo("scalameta", "sbt-plugins")
    addSbtPlugin("com.lihaoyi"     % "scalatex-sbt-plugin" % "0.3.8-pre")
    Ólafur Páll Geirsson
    @olafurpg
    Ping @lihaoyi. Any chance to get 0.3.9 out? I'm happy to help publish the artfacts and write changelog.
    Li Haoyi
    @lihaoyi
    @olafurpg lemme give you contributor access and my publishing credentials
    you already have contributor access, PMed you my publishing creds
    you seem to know what you're doing so I trust you to do the reasonable thing
    Ólafur Páll Geirsson
    @olafurpg
    Thanks a lot @lihaoyi :smile:
    Ólafur Páll Geirsson
    @olafurpg
    scalatex 0.3.11 is out with sbt 1.0 support http://www.lihaoyi.com/Scalatex/#0.3.11
    mgedigian-fitbit
    @mgedigian-fitbit
    Great to have sbt 1.0 support, thanks!
    Haemin Yoo
    @yoohaemin
    Hi, it seems something's wrong with Maven Central, all versions of scalatex-sbt-plugin gives 404 when trying to download either pom or jar. All other downloads work fine, it's only this library. Anyone has the same issue?
    Haemin Yoo
    @yoohaemin
    It seems I am confused about how all this dependencies are resolved -- but that's not for this channel.
    I'm here to just report sbt is failing to resolve scalatex-sbt-plugin, although it can easily be solved with a simple git clone and a publishLocal.
    Ólafur Páll Geirsson
    @olafurpg
    @yoo-haemin can you try 0.3.9?
    0.3.11 is only published for sbt 1.0
    Opened lihaoyi/Scalatex#62, will update docs once merged
    there are no new features in 0.3.11 compared to 0.3.9 besides sbt 1.0 support
    Haemin Yoo
    @yoohaemin
    It works, thanks for the clarification!
    Christopher Carlile
    @ccarlile
    Hey! I'm considering using scalatex for a server-generated static site. I'd like to be able to pass some variables into the template for rendering, but I don't see anywhere in the readme that would lead me to believe this is possible. If that's the case, I think scalatags would be my best bet, but i'd like to know if I'm wrong because these templates are slick!
    Li Haoyi
    @lihaoyi
    yeah scalatex doesn't support templating with variable injection right now
    no reason it couldn't, but it doesn't
    Christopher Carlile
    @ccarlile
    Ok thank you.
    Anthony Cerruti
    @sorenbug
    lazy val html = (project in file("html")).settings(
      common,
      scalatex.SbtPlugin.projectSettings,
      name := "palo-html",
      version := "0.1.0",
      scalaVersion := "2.12.6",
    ).dependsOn(core)
    I have this set up to generate scalatex
    (from html/src/main/scalatex/**)
    [IJ]sbt:palo> html/run
    Generating Scalatex Sources...
    [error] java.lang.RuntimeException: No main class detected.
    [error]     at scala.sys.package$.error(package.scala:27)
    [error]     at sbt.Defaults$.$anonfun$bgRunTask$4(Defaults.scala:1168)
    [error]     at scala.Option.getOrElse(Option.scala:121)
    [error]     at sbt.Defaults$.$anonfun$bgRunTask$3(Defaults.scala:1168)
    [error]     at scala.Function1.$anonfun$compose$1(Function1.scala:44)
    [error]     at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:39)
    [error]     at sbt.std.Transform$$anon$4.work(System.scala:66)
    [error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:263)
    [error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
    [error]     at sbt.Execute.work(Execute.scala:272)
    [error]     at sbt.Execute.$anonfun$submit$1(Execute.scala:263)
    [error]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
    [error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
    [error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    [error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    [error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    [error]     at java.lang.Thread.run(Thread.java:748)
    [error] (html / Compile / bgRun) No main class detected.
    [error] Total time: 3 s, completed May 16, 2018 4:18:40 PM
    However this happens when I try to run like the tutorial says

    When all is said and done, run:

    readme/run

    To generate the Scalatex site inside the target/site folder.

    from http://www.lihaoyi.com/Scalatex/#ScalatexSite

    I want to generate a static website
    Anthony Cerruti
    @sorenbug
    However, using html/compile generates this for me:
    
    package scalatex
    
    import scalatags.Text.all._
    
    object main{
      def apply(): Frag = _root_.scalatex.twf("/home/tsunbug/IdeaProjects/palo-static/html/src/main/scalatex/main.scalatex")
    }
    
    //@html
    //  @head
    //    @link{rel := "stylesheet", href := "/css/main.css"}
    //  @body
    //    hi
    Which is pretty much useless
    Anthony Cerruti
    @sorenbug
    is there an SBT task that will give me the directory where the HTML is generated? (This can be used for static page generation right?)
    Sakib Hadžiavdić
    @sake92
    @TsundereBug
    lazy val html = scalatex.ScalatexReadme(
      projectId = "html",
      wd = file(""),
      url = "https://github.com/lihaoyi/scalatex/tree/master",
      source = "Readme"
    )
    that works for me
    if you want something more flexible, try https://sake92.github.io/hepek :smile:
    Anthony Cerruti
    @sorenbug
    @sake92 hepek as a replacement for scalatex?
    or as an SBT addon
    Sakib Hadžiavdić
    @sake92
    @TsundereBug more like a replacement, it uses an sbt-plugin for writing objects to files etc.
    PM me if you have questions
    Anthony Cerruti
    @srnb_gitlab
    Does anyone have a nice looking template/setup/library for generating a multi-page site with nav between each site
    Can I do that at all?
    Anthony Cerruti
    @srnb_gitlab
    blargh there seems to be no editor support for scalatex