Closed GeopJr closed 2 years ago
@GeopJr thanks for the PR. clever fix!
I've been playing with Ktistec locally and mainly focusing on making it as portable as possible so here's what I ended up doing so it creates content.rules if it doesn't exist else read it:
content_rules_path = File.join(Dir.current, "etc", "rules", "content.rules")
File.write(content_rules_path, {{read_file("#{__DIR__}/../../etc/rules/content.rules")}}) unless File.exists?(content_rules_path)
definition = File.read(content_rules_path)
(I switched from slang back to ecr and trying to clean everything up before publishing my changes 😅)
Thanks for creating Ktistec by the way 🙏, I've been meaning to get into it for a long time and finally had the chance! (I think I was the 8th person who starred it(?))
👍
This PR embeds
./etc/rules/content.rules
fixes: #19