Coder Social home page Coder Social logo

ego's Introduction

Hi there ๐Ÿ‘‹

I'm Dung Nguyen

  • โญ I'm a Web Developer at OnpointVietnam
  • ๐Ÿ”ญ Iโ€™m currently working on Ecommerce Enabler project
  • ๐ŸŒฑ Iโ€™m currently learning parser & compiler
  • ๐Ÿ“ซ How to reach me: [email protected]
  • ๐Ÿ”– Visit my blog: https://bluzky.github.io/ or Dev.to

Languages and Tools:

elixir

bluzky

ย bluzky

bluzky

ego's People

Contributors

bluzky avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ego's Issues

use default when create and build

when install from hex, use have to define local config.
We want to use default config as in ego project.
Ideas is ship default config in priv direction and when run mix task, load the config to current app

compile scss

We should implement filter to render scss to css

Something like

css_path |resource | compile_scss: output: output_path

Features

** Command
** Content template
** Custom layout
** Theme

  • Theme structure
    • theme.yml
    • assets
      • statics
      • js
      • css -> minify
      • scss -> compile
    • archetype
    • layout
      • [archetype]
        • base.html
        • list.html
        • single.html
      • _default
        • base.html // base layout
        • list.html
        • single.html
        • [page].html // custom render for page example about.html

** Layout & teplate lookup

  • Template

    • Single: [archetype]/single.html -> _default/single.html
    • List: [archetype]/list.html -> _default/list.html
    • Page or specified layout: -> _default/[layout].html
  • Layout

    • [archetype]/base.html -> _default/base.html

Issues

  • Layout lookup
  • Render to static
  • Compile assets
  • Generate API
  • Config file
  • Compile content
  • build binary
  • Build a full template
  • Build dev server
  • Add content filter

Implement with tag

With tag do:

  • check if value is exist
  • if exist then render inner blog and expose all value property if it's a map to inner context
{% with job.user %}
	{{fullname}}
{% endwith %}

Implement paginate tag

Paginate tag only work on list page and expose paginator to inner context

paginator :: %{
	  entries: list(map())
	  page: :integer,
	  size: :integer,
	  total_page: :integer,
	  has_next: :boolean,
	  has_prev: :boolean
	  next_url: :binary,
	  prev_url: :binary,
	  pages: [%{
		    page: :integer,
		    url: :binary
	  }]
}

Fix escript install config

When use mix escript.install github path it requires local config directory to exist, Otherwise build process will fail

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.