Code Monkey home page Code Monkey logo

lucky's People

Contributors

5minpause avatar actsasflinn avatar ajwann avatar arr-dev avatar bcardiff avatar bdtomlin avatar citizen428 avatar edwardloveall avatar gabrielrios avatar grepsedawk avatar hanneskaeufler avatar hibachrach avatar ianagne avatar jwoertink avatar kcerb avatar matthewmcgarvey avatar mdwagner avatar mikeeus avatar nodemd avatar paulcsmith avatar rmarronnier avatar rnice01 avatar robacarp avatar russ avatar sija avatar skojin avatar smadeja avatar stephendolan avatar vlazar avatar wout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lucky's Issues

Ikagi

ikigai

The Lucky philosophy is to try to be at the intersection of happiness, usefulness, ease of use, what you can get paid for, and what is fulfilling. A framework with as few tradeoffs as possible.

Add raise_typeof helper

I want to make it easy for beginners to figure out the types of things. This will be helpful when using assigns in Pages, or really for anytime you need a type

macro show_typeof(var)
  raise "Type of `{{var.id}}` is: #{typeof({{var}})}"
end

number = 1
show_typeof(number)

Make assign more robust

If you have the same assign in multiple pages it duplicates it the asking. That needs to be fixed

Add helper for rendering in a layout

class InnerPage < BaseView
  layout BaseLayout # This would probably go in the BaseView

  def inner
    # The inner page
  end

  def title
    "A great title"
  end
end

class BaseLayout < BaseLayout
  @page : BaseView

  def render
    title @page.title
    main do
      # Consider forwarding missing to @page so you can use it's helpers more easily
      @page.inner
    end
  end
end

Instead of this old way

class InnerPage < LuckyWeb::HTMLView
  def render
    Layout.new(self).render.to_s
  end

  def title
    "A great title"
  end
end

class Layout < LuckyWeb::HTMLView
  @page : InnerPage

  def initialize(@page)
    @io = IO::Memory.new
  end

  def render
    title @page.title
  end
end

Use git-crypt for storing and reading secrets

https://www.agwa.name/projects/git-crypt/ Transparent file encryption. Can use symmetric keys so devs can easily share it, or use GPG.

Add some lucky tasks to get it working well, make it easy to publish the key to Heroku on setup

lucky secrets.encrypt_file # Add file(s) to .git-attributes
lucky secrets.sync_key prod # Pushes the key as an env var on Heroku

Add HerokuDeploy task

So it can be inherited from in the default lucky deploy task, but can be overridden if you want to implement your own task

Discuss: Add optional template rendering to pages

class Users::IndexPage < MainLayout
  needs users : UserQuery

  render_template # Assumes ./index_template.ecr/.slang - Use kilt to support just about anything
  
  # or specify template
  render_template "./some_other_extension.rss.ecr
end

The default would still be to use the HTML tag methods, but sometimes it's much nicer to use templating languages like ECR when doing content heavy pages like landing pages, pricing pages, etc. They're usually quite simple and have large paragraphs of text, which work better in template languages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.