Skip to content

render "index.slang" generates macro errors with LAYOUT = false #1227

@jeffbdavenport

Description

@jeffbdavenport

Description

With the default setup of a brand new Amber and an example scaffold, it creates the application.cr to look like this

Steps to Reproduce

require "jasper_helpers"

class ApplicationController < Amber::Controller::Base
  include JasperHelpers
  LAYOUT = false
end

If you comment out the LAYOUT = false and create the application.slang file, everything works as normal

Expected behavior: It should render just fine

Actual behavior: All the pages being rendered generate some strange macro errors.

Reproduces how often: 100% of the time

Versions

Amber CLI (amberframework.org) - v0.35.0
Crystal 0.35.1 [5999ae29b] (2020-06-19)
LLVM: 8.0.0
Default target: x86_64-unknown-linux-gnu

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions