Refactor website with new design & structure

This commit is contained in:
Andrew Miner
2016-04-03 19:30:15 -07:00
parent ec7e8c883d
commit d69585facd
406 changed files with 7411 additions and 37859 deletions
@@ -0,0 +1,23 @@
#
# Crafting Guide - markdown_image.coffee
#
# Copyright © 2014-2016 by Redwood Labs
# All rights reserved.
#
EditableFile = require './editable_file'
########################################################################################################################
module.exports = class MarkdownImage extends EditableFile
# Property Methods #############################################################################
getImageUrl: ->
if @mimeType? and @encodedData?
return "data:#{@mimeType};base64,#{@encodedData}"
else
return @fullPath
Object.defineProperties @prototype,
imageUrl: {get:@prototype.getImageUrl}