0.0
No commit activity in last 3 years
No release in over 3 years
Manage AngularJS templates as HTML partials
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 4.1.0
 Project Readme

#NgTemplate

Manage angularjs templates as view partials in rails assets pipeline.

This a bit similar gem to (angular-rails-templates)[https://github.com/pitr/angular-rails-templates] but utilizes normal rails view partials instead.

Install

Gemfile

gem 'ng_template'

Usage

app/controllers/aplication_controller.rb:

class ApplicationController < ActionController::Base
  ...
  helper NgTemplate::TemplateHelper
end

app/views/some/ui/show.html.erb:

<%= ng_template_include 'some/path' %>

OR

<%= ng_template_include 'some/path', prefix: '_some_prefix_' %>