All Projects → slime-lang → Phoenix_slime

slime-lang / Phoenix_slime

Licence: mit
Phoenix Template Engine for Slime

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Phoenix slime

Drab
Remote controlled frontend framework for Phoenix.
Stars: ✭ 833 (+191.26%)
Mutual labels:  phoenix, elixir-phoenix
plug rails cookie session store
Rails compatible Plug session store
Stars: ✭ 93 (-67.48%)
Mutual labels:  phoenix, elixir-phoenix
Elixirbooks
List of Elixir books
Stars: ✭ 1,021 (+256.99%)
Mutual labels:  phoenix, elixir-phoenix
Awesome Phoenix
🔥 Collection of awesome open-source apps made with Phoenix Framework
Stars: ✭ 481 (+68.18%)
Mutual labels:  phoenix, elixir-phoenix
live dj
💿 Join or create video playlists to share a real-time experience with others! 🎧
Stars: ✭ 19 (-93.36%)
Mutual labels:  phoenix, elixir-phoenix
Phoenix Ecto Append Only Log Example
📝 A step-by-step example/tutorial showing how to build a Phoenix (Elixir) App where all data is immutable (append only). Precursor to Blockchain, IPFS or Solid!
Stars: ✭ 58 (-79.72%)
Mutual labels:  phoenix, elixir-phoenix
Phoenix In Action
Code snippets and examples from the book Phoenix in Action from Manning and Geoffrey Lessel
Stars: ✭ 60 (-79.02%)
Mutual labels:  phoenix, elixir-phoenix
Shorten api tutorial
🔗How to make a link shortener using Elixir, Phoenix and Mnesia
Stars: ✭ 60 (-79.02%)
Mutual labels:  phoenix, elixir-phoenix
Veil
Simple passwordless authentication for your Phoenix apps
Stars: ✭ 153 (-46.5%)
Mutual labels:  phoenix, elixir-phoenix
Ecto morph
morph your Ecto capabilities into the s t r a t o s p h e r e !
Stars: ✭ 72 (-74.83%)
Mutual labels:  phoenix, elixir-phoenix
pryin
PryIn is an Application Performance Monitoring platform for your Elixir/Phoenix application.
Stars: ✭ 25 (-91.26%)
Mutual labels:  phoenix, elixir-phoenix
mindwendel
Create a challenge. Ready? Brainstorm. mindwendel helps you to easily brainstorm and upvote ideas and thoughts within your team.
Stars: ✭ 22 (-92.31%)
Mutual labels:  phoenix, elixir-phoenix
Papercups
Open-source live customer chat
Stars: ✭ 4,554 (+1492.31%)
Mutual labels:  phoenix, elixir-phoenix
wassup
Personal assistant to help you save your personal memories and emotions together, securely
Stars: ✭ 58 (-79.72%)
Mutual labels:  elixir-phoenix
phoenix-config
My personal Phoenix (kasper/phoenix) configuration, written in TypeScript
Stars: ✭ 26 (-90.91%)
Mutual labels:  phoenix
vscode-eex-snippets
Elixir EEx and HTML (EEx) code snippets.
Stars: ✭ 23 (-91.96%)
Mutual labels:  elixir-phoenix
one plus n detector
Elixir library to help you detect 1+n queries in applications using Ecto
Stars: ✭ 20 (-93.01%)
Mutual labels:  phoenix
Godello
Trello inspired kanban board made with the Godot Engine and GDScript, powered by an online real-time collaborative backend (Elixir and Phoenix Channels)
Stars: ✭ 273 (-4.55%)
Mutual labels:  elixir-phoenix
log viewer
An Web based Log Viewer for Elixir and Phoenix
Stars: ✭ 57 (-80.07%)
Mutual labels:  phoenix
BearNecessities
Multiplayer bear game with Phoenix Live View
Stars: ✭ 19 (-93.36%)
Mutual labels:  phoenix

Phoenix Template Engine for Slim

Build Status Hex Version License

Powered by Slime

Usage

  1. Add {:phoenix_slime, "~> 0.13.1"} to your deps in mix.exs.
  2. Add the following to your Phoenix config/config.exs:
  config :phoenix, :template_engines,
    slim: PhoenixSlime.Engine,
    slime: PhoenixSlime.Engine,
    slimleex: PhoenixSlime.LiveViewEngine # If you want to use LiveView

An example project can be found at slime-lang/phoenix_slime_example.

Live Reloader

In my_app/config/dev.exs, include the slim and slime extensions in the list of watched files. (Replace APP with your app name.)

# Watch static and templates for browser reloading.
config :my_app, MyApp.Endpoint,
  live_reload: [
    patterns: [
      ~r{priv/static/.*(js|css|png|jpeg|jpg|gif)$},
      ~r{web/views/.*(ex)$},
      ~r{lib/APP_web/templates/.*(eex|slim|slime)$}
    ]
  ]

Generators

This library also includes two mix tasks:

mix phx.gen.html.slime mix phx.gen.layout.slime

The first task creates a html resource in the same way phx.gen.html does with the exception that all files are .slime files instead of .eex files.

The second task creates a new lib/APP_web/templates/layout/app.html.slime with the exact same content as the app.html.eex file. Do not forget to remove the old app.html.eex file.

Generated files have .slime extension by default. If you prefer .slim, you could add the following line to your config:

config :phoenix_slime, :use_slim_extension, true

License

MIT license. Please see LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].