Update URL scheme to include /item/*
* Update the router to understand /item/:name routes in addition to v1.0-style parameterized routes * Add support for updating the current URL based upon the item being viewed * Change LandingPage* to ItemPage*
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
###
|
||||
# Crafting Guide - item_page.coffee
|
||||
#
|
||||
# Copyright (c) 2014 by Redwood Labs
|
||||
# All rights reserved.
|
||||
###
|
||||
|
||||
BaseModel = require './base_model'
|
||||
CraftingTable = require './crafting_table'
|
||||
RecipeCatalog = require './recipe_catalog'
|
||||
|
||||
########################################################################################################################
|
||||
|
||||
module.exports = class ItemPage extends BaseModel
|
||||
|
||||
constructor: (attributes={}, options={})->
|
||||
attributes.catalog ?= new RecipeCatalog
|
||||
attributes.table ?= new CraftingTable catalog:attributes.catalog
|
||||
super attributes, options
|
||||
Reference in New Issue
Block a user