Skip to content

Instantly share code, notes, and snippets.

@RolandStuder
Last active June 9, 2018 11:38
Show Gist options
  • Save RolandStuder/c3bb4153fd33042e5d3b815f327e4dd9 to your computer and use it in GitHub Desktop.
Save RolandStuder/c3bb4153fd33042e5d3b815f327e4dd9 to your computer and use it in GitHub Desktop.
CommentsInSektchSystemsSpec
CommentsInSektchSystemsSpec
Spec
uncommented*
# I can actually comment, that's helpful
comment with some syntax -> commented
commented
remove comment -> uncommented
function render(model){
let current_state_name = model.active_states[0].name;
if (current_state_name == "uncommented") {
return $("pre", {}, "State")
}
if (current_state_name == "commented") {
return $("pre", {}, "State\n #some comment that can explain the state.")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment