Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vslinko/symfio-contrib-escaped-fragment
symfio-contrib-escaped-fragment
https://github.com/vslinko/symfio-contrib-escaped-fragment
Last synced: 22 days ago
JSON representation
symfio-contrib-escaped-fragment
- Host: GitHub
- URL: https://github.com/vslinko/symfio-contrib-escaped-fragment
- Owner: vslinko
- License: mit
- Created: 2013-04-19T04:32:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-01T11:53:24.000Z (about 11 years ago)
- Last Synced: 2024-09-21T00:32:01.272Z (about 2 months ago)
- Language: CoffeeScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# symfio-symfio-contrib-escaped-fragment
> Search engines indexation plugin.
## Usage
```coffee
symfio = require "symfio"container = symfio "example", __dirname
container.set "public directory", path.join __dirname, "public"
container.set "components", [
"angular#~1.0"
"jquery#~1.9"
]loader = container.get "loader"
loader.use require "symfio-contrib-express"
loader.use require "../lib/escaped-fragment"
loader.use require "symfio-contrib-assets"
loader.use require "symfio-contrib-bower"loader.use (container, callback) ->
app = container.get "app"app.get "/", (req, res) ->
res.send "Escaped fragment"callback()
loader.load()
```## Also you should configure you angular project like that:
```coffee
escapedFragmentApp = angular.module "EscapedFragmentApp", []escapedFragmentApp.config ($locationProvider) ->
$locationProvider.hashPrefix "!"escapedFragmentApp.config ($routeProvider) ->
# Yout must configure redirect if route doesn't match.
# $routeProvider.otherwise
# redirectTo: "/"# Or define special route.
$routeProvider.when "/404",
templateUrl: "404.html"$routeProvider.otherwise
redirectTo: "/404"
```## Required plugins
* [contrib-express](https://github.com/symfio/symfio-contrib-express)
* [contrib-assets](https://github.com/symfio/symfio-contrib-assets)
* [contrib-bower](https://github.com/symfio/symfio-contrib-bower)